source:
CIVL/mods/dev.civl.com/examples/library/stdlib/malloc3.c@
cb4d4f4
| Last change on this file since cb4d4f4 was aad342c, checked in by , 3 years ago | |
|---|---|
|
|
| File size: 94 bytes | |
| Rev | Line | |
|---|---|---|
| [2d8a937] | 1 | #include <stdlib.h> |
| 2 | ||
| 3 | void 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.
