summaryrefslogtreecommitdiffhomepage
path: root/misc/examples/splitstr.c
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2023-02-05 21:21:55 +0100
committerTyge Løvset <[email protected]>2023-02-05 21:21:55 +0100
commite6dfaf1720f6833784d17d5364e1dd76324dff6a (patch)
tree0808f479425e58971aef993288bb818e60417422 /misc/examples/splitstr.c
parent217865ae413f9cfcc72af176ec7e98f418bddbea (diff)
downloadSTC-modified-e6dfaf1720f6833784d17d5364e1dd76324dff6a.tar.gz
STC-modified-e6dfaf1720f6833784d17d5364e1dd76324dff6a.zip
Some last minute changes: reverted mostly the c_extern from last commit.
Renamed c_ARGSV(sv) macro to c_SVARG(sv). Both available.
Diffstat (limited to 'misc/examples/splitstr.c')
-rw-r--r--misc/examples/splitstr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/misc/examples/splitstr.c b/misc/examples/splitstr.c
index ba927412..43309634 100644
--- a/misc/examples/splitstr.c
+++ b/misc/examples/splitstr.c
@@ -8,12 +8,12 @@ int main()
puts("Split with c_FORTOKEN (csview):");
c_FORTOKEN (i, "Hello World C99!", " ")
- printf("'%.*s'\n", c_ARGSV(i.token));
+ printf("'%.*s'\n", c_SVARG(i.token));
puts("\nSplit with c_FORMATCH (regex):");
c_WITH (cregex re = cregex_from("[^ ]+"), cregex_drop(&re))
c_FORMATCH (i, &re, " Hello World C99! ")
- printf("'%.*s'\n", c_ARGSV(i.match[0]));
+ printf("'%.*s'\n", c_SVARG(i.match[0]));
}