source:
CIVL/examples/library/funcPointer.cvl@
f3527dd
| Last change on this file since f3527dd was b881a0e, checked in by , 11 years ago | |
|---|---|
|
|
| File size: 136 bytes | |
| Rev | Line | |
|---|---|---|
| [b881a0e] | 1 | #include <civlc.cvh> |
| 2 | ||
| 3 | void test(void f(void*), void* x){ | |
| 4 | f(x); | |
| 5 | } | |
| 6 | ||
| 7 | int main(){ | |
| 8 | int x; | |
| 9 | ||
| 10 | test($set_default, &x); | |
| 11 | $assert(x==0); | |
| 12 | } | |
| 13 |
Note:
See TracBrowser
for help on using the repository browser.
