checkmk/test/trailing_ws/in
raw| 1 | /* A complete test example (with trailing whitespace) */ |
| 2 | |
| 3 | #include <stdio.h> |
| 4 | |
| 5 | # suite The Suite |
| 6 | |
| 7 | # tcase The Test Case |
| 8 | |
| 9 | # test the_test |
| 10 | int nc; |
| 11 | const char msg[] = "\n\n Hello, world!\n"; |
| 12 | |
| 13 | nc = printf("%s", msg); |
| 14 | fail_unless(nc == (sizeof msg |
| 15 | - 1) /* for terminating NUL. */ |
| 16 | ); |