source:
CIVL/examples/library/civlc/equals.cvl@
c1087dd
| Last change on this file since c1087dd was dfabdc0, checked in by , 12 years ago | |
|---|---|
|
|
| File size: 200 bytes | |
| Rev | Line | |
|---|---|---|
| [dfabdc0] | 1 | #include<civlc.h> |
| 2 | ||
| 3 | void main(){ | |
| 4 | int* data; | |
| 5 | _Bool r; | |
| 6 | ||
| 7 | data = (int*) $malloc($root, sizeof(int)*2); | |
| 8 | *data = 1; | |
| 9 | *(data + 1) = 2; | |
| 10 | r = $equals(data, data+1); | |
| 11 | $assert(!r); | |
| 12 | $free(data); | |
| 13 | } |
Note:
See TracBrowser
for help on using the repository browser.
