Changes in examples/wrapper/src/main.c [200fcb3:bf71cfd]
- File:
-
- 1 edited
-
examples/wrapper/src/main.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
examples/wrapper/src/main.c
r200fcb3 rbf71cfd 1 1 #include "pointer.h" 2 2 3 wrapper_t make_copy(wrapper_t copy) { 3 wrapper_t make_copy(wrapper_t copy) 4 { 4 5 return copy; 5 6 } 6 7 7 int main(int argc, char const *argv[]) { 8 int main(int argc, char const *argv[]) 9 { 8 10 wrapper_t p = wrap(6); 9 sout | nl | "test started"; 11 12 sout | endl | "test started" | endl; 13 10 14 wrapper_t p2 = p; 15 11 16 clear(&p); 17 12 18 p = p2; 19 13 20 wrapper_t p3 = make_copy(p2); 14 sout | nl | "test ended"; 21 22 sout | endl | "test ended" | endl; 23 15 24 return 0; 16 25 }
Note:
See TracChangeset
for help on using the changeset viewer.