diff options
| author | Tyge Løvset <[email protected]> | 2023-02-05 21:21:55 +0100 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2023-02-05 21:21:55 +0100 |
| commit | e6dfaf1720f6833784d17d5364e1dd76324dff6a (patch) | |
| tree | 0808f479425e58971aef993288bb818e60417422 /misc/examples/splitstr.c | |
| parent | 217865ae413f9cfcc72af176ec7e98f418bddbea (diff) | |
| download | STC-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.c | 4 |
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])); } |
