1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
#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; }