source:
CIVL/examples/library/stdlib/malloc.cvl@
64f7cb1
| Last change on this file since 64f7cb1 was aba72ad1, checked in by , 11 years ago | |
|---|---|
|
|
| File size: 105 bytes | |
| Line | |
|---|---|
| 1 | #include <stdlib.h> |
| 2 | |
| 3 | void main(){ |
| 4 | int*p; |
| 5 | |
| 6 | p = (int *) malloc(sizeof(int)); |
| 7 | *p = 10; |
| 8 | free(p); |
| 9 | } |
Note:
See TracBrowser
for help on using the repository browser.
