source:
CIVL/mods/dev.civl.com/examples/library/stdlib/malloc.cvl@
bc0fbae
| Last change on this file since bc0fbae was aad342c, checked in by , 3 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.
