source: CIVL/examples/library/stdlib/malloc3.c@ d0fabe7f

1.23 2.0 main test-branch
Last change on this file since d0fabe7f was 2d8a937, checked in by Ziqing Luo <ziqing@…>, 9 years ago

merged wenhao's branch which fixed the bug in transform calloc

git-svn-id: svn://vsl.cis.udel.edu/civl/trunk@4346 fb995dde-84ed-4084-dfe6-e5aef3e2452c

  • Property mode set to 100644
File size: 94 bytes
Line 
1#include <stdlib.h>
2
3void main(){
4
5 int * p = malloc(sizeof(int));
6 *p = 10;
7 free(p);
8}
Note: See TracBrowser for help on using the repository browser.