summaryrefslogtreecommitdiffhomepage
path: root/examples/splitstr.c
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2022-01-08 23:13:32 +0100
committerTyge Løvset <[email protected]>2022-01-08 23:13:32 +0100
commit63562f5135243ac2a2553b4e7360c59e86686d6f (patch)
tree439a3853a6bfded32a3031b577457bfba470f1a7 /examples/splitstr.c
parent0a9910eee6582e6ee414071a0d5e7062448989cf (diff)
downloadSTC-modified-63562f5135243ac2a2553b4e7360c59e86686d6f.tar.gz
STC-modified-63562f5135243ac2a2553b4e7360c59e86686d6f.zip
Moved utf8 from cregex.h to separate file. Splitted csview.h into another file strings.h.
Diffstat (limited to 'examples/splitstr.c')
-rw-r--r--examples/splitstr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/splitstr.c b/examples/splitstr.c
index 81688ec7..db46eaed 100644
--- a/examples/splitstr.c
+++ b/examples/splitstr.c
@@ -1,4 +1,4 @@
-#include <stc/csview.h>
+#include <stc/strings.h>
void print_split(csview str, csview sep)
{
@@ -6,7 +6,7 @@ void print_split(csview str, csview sep)
while (pos != str.size) {
csview tok = csview_token(str, sep, &pos);
// print non-null-terminated csview
- printf("[" c_svfmt "]\n", c_svarg(tok));
+ printf("[" c_PRIsv "]\n", c_ARGsv(tok));
}
}