This shows you the differences between two versions of the page.
c:stdlib.h:free [2013/01/22 22:02] 127.0.0.1 external edit |
c:stdlib.h:free [2024/02/16 01:04] (current) |
||
---|---|---|---|
Line 42: | Line 42: | ||
int *buffer; | int *buffer; | ||
printf("set buffer to 100 * sizeof(int)\n"); | printf("set buffer to 100 * sizeof(int)\n"); | ||
- | buffer = (int*) malloc (10*sizeof(int)); | + | buffer = (int*) malloc (100*sizeof(int)); |
testit(buffer); | testit(buffer); | ||