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