summaryrefslogtreecommitdiffhomepage
path: root/examples/sview_split.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/sview_split.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/sview_split.c')
-rw-r--r--examples/sview_split.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/sview_split.c b/examples/sview_split.c
index 8e8443b8..22d94f23 100644
--- a/examples/sview_split.c
+++ b/examples/sview_split.c
@@ -1,4 +1,4 @@
-#include <stc/csview.h>
+#include <stc/strings.h>
int main()
{
@@ -9,8 +9,8 @@ int main()
const csview month = csview_token(date, c_sv("/"), &pos);
const csview day = csview_token(date, c_sv("/"), &pos);
- printf(c_svfmt ", " c_svfmt ", " c_svfmt "\n",
- c_svarg(year), c_svarg(month), c_svarg(day));
+ printf(c_PRIsv ", " c_PRIsv ", " c_PRIsv "\n",
+ c_ARGsv(year), c_ARGsv(month), c_ARGsv(day));
c_auto (cstr, y, m, d) {
y = cstr_from_v(year), m = cstr_from_v(month), d = cstr_from_v(day);