summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorTyge Lovset <[email protected]>2022-07-21 00:00:24 +0200
committerTyge Lovset <[email protected]>2022-07-21 00:00:24 +0200
commit0bb2d1c27bd06ac2da72125076be82aa9166409f (patch)
tree712e09d3412973248fa67b9cf63ce311ea2265b5 /include
parent6fcb91a18f3a97be0469211fffeafff533219715 (diff)
downloadSTC-modified-0bb2d1c27bd06ac2da72125076be82aa9166409f.tar.gz
STC-modified-0bb2d1c27bd06ac2da72125076be82aa9166409f.zip
Extended regex_replace.c examples.
Diffstat (limited to 'include')
-rw-r--r--include/stc/cregex.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/stc/cregex.h b/include/stc/cregex.h
index a59a876c..2b972fc8 100644
--- a/include/stc/cregex.h
+++ b/include/stc/cregex.h
@@ -79,7 +79,7 @@ int cregex_compile(cregex *self, const char* pattern, int cflags);
/* number of capture groups in a regex pattern */
int cregex_captures(const cregex* self);
-/* return number of capture groups on success, or (negative) error code on failure. */
+/* return 1 on match, 0 on nomatch, and -1 on failure. */
int cregex_match(const cregex *self, const char* string,
unsigned nmatch, csview match[], int mflags);