source:
CIVL/examples/languageFeatures/malloc.cvl@
475b2d9
| Last change on this file since 475b2d9 was 793cfc2, checked in by , 13 years ago | |
|---|---|
|
|
| File size: 160 bytes | |
| Line | |
|---|---|
| 1 | #include <civlc.h> |
| 2 | |
| 3 | // void* $malloc($heap *h, int size); |
| 4 | |
| 5 | void main() { |
| 6 | $heap h; |
| 7 | double *p = (double *) $malloc(&h, 5*sizeof(double)); |
| 8 | |
| 9 | $free(p); |
| 10 | } |
Note:
See TracBrowser
for help on using the repository browser.
