gcc -o stdlib.h syntax error c Hacking the Art of Exploitation
问题 I am working out of the 2nd edition of Jon Erickson's "Hacking: The Art of Exploitation" using a VM (virutalbox) to run the LiveCD it came with (Ubuntu 7.04). In section 0x272 "Using the Heap", the author explains the malloc() and free() functions using an example on pages 77-79. The code for the heap_example.c is as follows: #include <stdio.h> #include <stdlib.h> #include <string.h> int main(int argc,char *argv[]){ char *char_ptr; int *int_ptr; int mem_size; if(argc < 2) mem_size = 50; else