diff options
Diffstat (limited to 'misc/examples/splitstr.c')
| -rw-r--r-- | misc/examples/splitstr.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/misc/examples/splitstr.c b/misc/examples/splitstr.c deleted file mode 100644 index 2bc6fc07..00000000 --- a/misc/examples/splitstr.c +++ /dev/null @@ -1,20 +0,0 @@ -#include <stdio.h> -#define i_extern // cstr + utf8 functions -#include <stc/cregex.h> -#include <stc/csview.h> - -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); -} |
