#include #define i_extern // cstr + utf8 functions #include #include int main() { puts("Split with c_fortoken (csview):"); c_fortoken (i, "Hello World C99!", " ") printf("'%.*s'\n", c_SV(i.token)); puts("\nSplit with c_formatch (regex):"); cregex re = cregex_from("[^ ]+"); c_formatch (i, &re, " Hello World C99! ") printf("'%.*s'\n", c_SV(i.match[0])); cregex_drop(&re); }