source:
src/examples/wrapper/src/main.c
@
dbe9b08
Last change on this file since dbe9b08 was 21995bc, checked in by , 8 years ago | |
---|---|
|
|
File size: 307 bytes |
Rev | Line | |
---|---|---|
[03286aa] | 1 | #include "pointer.h" |
2 | ||
[21995bc] | 3 | wrapper_t make_copy(wrapper_t copy) |
4 | { | |
5 | return copy; | |
6 | } | |
7 | ||
[03286aa] | 8 | int main(int argc, char const *argv[]) |
9 | { | |
[bf1ee05] | 10 | wrapper_t p = wrap(6); |
[21995bc] | 11 | |
12 | sout | endl | "test started" | endl; | |
13 | ||
14 | wrapper_t p2 = p; | |
15 | ||
16 | clear(&p); | |
17 | ||
18 | p = p2; | |
19 | ||
20 | wrapper_t p3 = make_copy(p2); | |
21 | ||
22 | sout | endl | "test ended" | endl; | |
23 | ||
[03286aa] | 24 | return 0; |
25 | } |
Note: See TracBrowser
for help on using the repository browser.