summaryrefslogtreecommitdiffhomepage
path: root/examples/splitstr.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/splitstr.c')
-rw-r--r--examples/splitstr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/splitstr.c b/examples/splitstr.c
index ba49ddcf..b6c703b4 100644
--- a/examples/splitstr.c
+++ b/examples/splitstr.c
@@ -6,7 +6,7 @@ void print_split(csview str, csview sep)
csview token = csview_first_token(str, sep);
for (;;) {
// print non-null-terminated csview
- printf("\t\"%.*s\"\n", csview_arg(token));
+ printf("\t\"%.*s\"\n", csview_ARG(token));
if (csview_end(&token).ref == csview_end(&str).ref) break;
token = csview_next_token(str, sep, token);
}