summaryrefslogtreecommitdiffhomepage
path: root/examples/splitstr.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/splitstr.c')
-rw-r--r--examples/splitstr.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/examples/splitstr.c b/examples/splitstr.c
deleted file mode 100644
index a3c12a3a..00000000
--- a/examples/splitstr.c
+++ /dev/null
@@ -1,19 +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_ARGSV(i.token));
-
-
- puts("\nSplit with c_formatch (regex):");
-
- c_with (cregex re = cregex_from("[^ ]+", CREG_DEFAULT), cregex_drop(&re))
- c_formatch (i, &re, " Hello World C99! ")
- printf("'%.*s'\n", c_ARGSV(i.match[0]));
-}