summaryrefslogtreecommitdiffhomepage
path: root/examples/splitstr.c
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2021-05-27 10:07:57 +0200
committerTyge Løvset <[email protected]>2021-05-27 10:07:57 +0200
commitc7a6f7c17e2d2a2b0144cbec87f4b2c93e8150dd (patch)
treeea7c569309072360d0c439db6e5c09aa10371bd6 /examples/splitstr.c
parentb840bc032d8500379888caf93702ab057e712937 (diff)
downloadSTC-modified-c7a6f7c17e2d2a2b0144cbec87f4b2c93e8150dd.tar.gz
STC-modified-c7a6f7c17e2d2a2b0144cbec87f4b2c93e8150dd.zip
Made substr() and slice() only returning csview. Added Both cstr and csview input argument variants. Changed def of cstr_npos.
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);
}