diff options
author | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
commit | e0c6872cf40896c7be36b11dcc744620f10adf1d (patch) | |
tree | 60335e10d2f4354b0674ec22d7b53f0f8abee672 /support/dktools/test-skip.c |
Initial commit
Diffstat (limited to 'support/dktools/test-skip.c')
-rw-r--r-- | support/dktools/test-skip.c | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/support/dktools/test-skip.c b/support/dktools/test-skip.c new file mode 100644 index 0000000000..7a1c2a4f67 --- /dev/null +++ b/support/dktools/test-skip.c @@ -0,0 +1,31 @@ +/* + WARNING: This file was generated by dkct. + Changes you make here will be lost if dkct is run again! + You should modify the original source and run dkct on it. + Original source: test-skip.ctr +*/ + +/** @file test-skip.c The test-skip module. +*/ + + +#line 1 "test-skip.ctr" + +#include <stdio.h> + +#include <dk4str8.h> + +const char testline[] = { " Dies ist ein Test." }; + + +int main(void) +{ + const char *text; + size_t i; + + for (i = 0; i < 6; i++) { + text = dk4str8_skip(testline, i); + printf("%u \"%s\"\n", (unsigned)i, ((NULL != text) ? text : "(NULL)")); + } + return 0; +} |