summaryrefslogtreecommitdiffhomepage
path: root/misc/examples/regex2.c
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2023-01-26 10:02:06 +0100
committerTyge Løvset <[email protected]>2023-01-26 10:02:06 +0100
commit0c7e627aa27ba42b9a9a4472a4f1cdf857c1a833 (patch)
treece3a61931dff4770f49c27aead7b24aeb3360f74 /misc/examples/regex2.c
parent0b40c6af56231b4c2109596c88dcfce09c1429f7 (diff)
downloadSTC-modified-0c7e627aa27ba42b9a9a4472a4f1cdf857c1a833.tar.gz
STC-modified-0c7e627aa27ba42b9a9a4472a4f1cdf857c1a833.zip
Removed cregex args in examples which are now defaulted.
Diffstat (limited to 'misc/examples/regex2.c')
-rw-r--r--misc/examples/regex2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/examples/regex2.c b/misc/examples/regex2.c
index e24cce51..2b742529 100644
--- a/misc/examples/regex2.c
+++ b/misc/examples/regex2.c
@@ -18,7 +18,7 @@ int main()
c_AUTO (cregex, re)
c_FORRANGE (i, c_ARRAYLEN(s))
{
- int res = cregex_compile(&re, s[i].pattern, CREG_DEFAULT);
+ int res = cregex_compile(&re, s[i].pattern);
if (res < 0) {
printf("error in regex pattern: %d\n", res);
continue;