source:
CIVL/examples/library/civlc/equals.cvl@
2e2a7a5
| Last change on this file since 2e2a7a5 was dfabdc0, checked in by , 12 years ago | |
|---|---|
|
|
| File size: 200 bytes | |
| Line | |
|---|---|
| 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.
