source:
CIVL/examples/library/malloc.cvl@
8d298d8
| Last change on this file since 8d298d8 was e6b02c8, checked in by , 12 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.
