summaryrefslogtreecommitdiffhomepage
path: root/misc/examples/splitstr.c
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2022-12-23 23:55:10 +0100
committerTyge Løvset <[email protected]>2022-12-23 23:55:10 +0100
commitd623c6c85071b9af5d607bb5d9aceceaea05220a (patch)
treef20fc3714f86e1553d1103bed6dc8efefcbd9d6b /misc/examples/splitstr.c
parent5f57d597cd27aef55adbcb3b452973b0c6e33667 (diff)
downloadSTC-modified-d623c6c85071b9af5d607bb5d9aceceaea05220a.tar.gz
STC-modified-d623c6c85071b9af5d607bb5d9aceceaea05220a.zip
Experimental uppercase macros.
Diffstat (limited to 'misc/examples/splitstr.c')
-rw-r--r--misc/examples/splitstr.c10
1 files changed, 5 insertions, 5 deletions
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]));
}