source:
CIVL/examples/sideEffects/malloc.cvl@
5c27aa5
| Last change on this file since 5c27aa5 was 0f03d75, checked in by , 12 years ago | |
|---|---|
|
|
| File size: 171 bytes | |
| Rev | Line | |
|---|---|---|
| [0f03d75] | 1 | #include<civlc.h> |
| 2 | #include<stdlib.h> | |
| 3 | #include<assert.h> | |
| 4 | ||
| 5 | void main() { | |
| 6 | double *a; | |
| 7 | int m = 5; | |
| 8 | ||
| 9 | if ( (a=(double *)malloc(m*sizeof(double))) == NULL ) | |
| 10 | assert(0); | |
| 11 | } |
Note:
See TracBrowser
for help on using the repository browser.
