From 63562f5135243ac2a2553b4e7360c59e86686d6f Mon Sep 17 00:00:00 2001 From: Tyge Løvset Date: Sat, 8 Jan 2022 23:13:32 +0100 Subject: Moved utf8 from cregex.h to separate file. Splitted csview.h into another file strings.h. --- examples/sview_split.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'examples/sview_split.c') 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 +#include 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); -- cgit v1.2.3