diff options
| author | Tyge Løvset <[email protected]> | 2023-01-26 10:02:06 +0100 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2023-01-26 10:02:06 +0100 |
| commit | 0c7e627aa27ba42b9a9a4472a4f1cdf857c1a833 (patch) | |
| tree | ce3a61931dff4770f49c27aead7b24aeb3360f74 /misc/examples/splitstr.c | |
| parent | 0b40c6af56231b4c2109596c88dcfce09c1429f7 (diff) | |
| download | STC-modified-0c7e627aa27ba42b9a9a4472a4f1cdf857c1a833.tar.gz STC-modified-0c7e627aa27ba42b9a9a4472a4f1cdf857c1a833.zip | |
Removed cregex args in examples which are now defaulted.
Diffstat (limited to 'misc/examples/splitstr.c')
| -rw-r--r-- | misc/examples/splitstr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/examples/splitstr.c b/misc/examples/splitstr.c index 70d1935e..ba927412 100644 --- a/misc/examples/splitstr.c +++ b/misc/examples/splitstr.c @@ -13,7 +13,7 @@ int main() puts("\nSplit with c_FORMATCH (regex):"); - c_WITH (cregex re = cregex_from("[^ ]+", CREG_DEFAULT), cregex_drop(&re)) + c_WITH (cregex re = cregex_from("[^ ]+"), cregex_drop(&re)) c_FORMATCH (i, &re, " Hello World C99! ") printf("'%.*s'\n", c_ARGSV(i.match[0])); } |
