From d623c6c85071b9af5d607bb5d9aceceaea05220a Mon Sep 17 00:00:00 2001 From: Tyge Løvset Date: Fri, 23 Dec 2022 23:55:10 +0100 Subject: Experimental uppercase macros. --- misc/examples/splitstr.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'misc/examples/splitstr.c') diff --git a/misc/examples/splitstr.c b/misc/examples/splitstr.c index a3c12a3a..70d1935e 100644 --- a/misc/examples/splitstr.c +++ b/misc/examples/splitstr.c @@ -5,15 +5,15 @@ int main() { - puts("Split with c_fortoken (csview):"); + puts("Split with c_FORTOKEN (csview):"); - c_fortoken (i, "Hello World C99!", " ") + c_FORTOKEN (i, "Hello World C99!", " ") printf("'%.*s'\n", c_ARGSV(i.token)); - puts("\nSplit with c_formatch (regex):"); + puts("\nSplit with c_FORMATCH (regex):"); - c_with (cregex re = cregex_from("[^ ]+", CREG_DEFAULT), cregex_drop(&re)) - c_formatch (i, &re, " Hello World C99! ") + c_WITH (cregex re = cregex_from("[^ ]+", CREG_DEFAULT), cregex_drop(&re)) + c_FORMATCH (i, &re, " Hello World C99! ") printf("'%.*s'\n", c_ARGSV(i.match[0])); } -- cgit v1.2.3