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