From c7a6f7c17e2d2a2b0144cbec87f4b2c93e8150dd Mon Sep 17 00:00:00 2001 From: Tyge Løvset Date: Thu, 27 May 2021 10:07:57 +0200 Subject: Made substr() and slice() only returning csview. Added Both cstr and csview input argument variants. Changed def of cstr_npos. --- examples/splitstr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples') 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); } -- cgit v1.2.3