source:
CIVL/mods/dev.civl.abc/examples/link/a.c
| Last change on this file was aad342c, checked in by , 3 years ago | |
|---|---|
|
|
| File size: 385 bytes | |
| Line | |
|---|---|
| 1 | // ================ a_0.c ================ |
| 2 | struct S$TU0 { |
| 3 | int x; |
| 4 | }; |
| 5 | int f(struct S$TU0* p) |
| 6 | { |
| 7 | return p->x + 1; |
| 8 | } |
| 9 | // ================ a_1.c ================ |
| 10 | struct S; |
| 11 | int f(struct S* p); |
| 12 | int h(struct S* p) { |
| 13 | return f(p); |
| 14 | } |
| 15 | // ================ a_2.c ================ |
| 16 | struct S$TU2 { |
| 17 | double y; |
| 18 | }; |
| 19 | int h(struct S$TU2* p); |
| 20 | int main() { |
| 21 | struct S$TU2 s = {.y=3.14}; |
| 22 | return h(&s); |
| 23 | } |
Note:
See TracBrowser
for help on using the repository browser.
