summaryrefslogtreecommitdiffhomepage
path: root/misc/examples/strings/splitstr.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc/examples/strings/splitstr.c')
-rw-r--r--misc/examples/strings/splitstr.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/misc/examples/strings/splitstr.c b/misc/examples/strings/splitstr.c
index ef7ed174..6fa76d34 100644
--- a/misc/examples/strings/splitstr.c
+++ b/misc/examples/strings/splitstr.c
@@ -2,20 +2,20 @@
#define i_import // cstr + utf8 functions
#include <stc/cregex.h>
#define i_implement
-#include <stc/csview.h>
+#include <stc/csubstr.h>
int main(void)
{
- puts("Split with c_fortoken (csview):");
+ puts("Split with c_fortoken (csubstr):");
c_fortoken (i, "Hello World C99!", " ")
- printf("'%.*s'\n", c_SV(i.token));
+ printf("'%.*s'\n", c_SS(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]));
+ printf("'%.*s'\n", c_SS(i.match[0]));
cregex_drop(&re);
}