summaryrefslogtreecommitdiffhomepage
path: root/misc/examples/regex_replace.c
diff options
context:
space:
mode:
authortylov <[email protected]>2023-07-15 23:20:16 +0200
committertylov <[email protected]>2023-07-15 23:20:16 +0200
commite9121702a5d69624ef1e782e85a8f032e4f4e875 (patch)
tree00e7770c9b775d98b518d9e3929b6ec4f71ad754 /misc/examples/regex_replace.c
parent23aebb77554bc43c929704e9f1c46dc4520024df (diff)
downloadSTC-modified-e9121702a5d69624ef1e782e85a8f032e4f4e875.tar.gz
STC-modified-e9121702a5d69624ef1e782e85a8f032e4f4e875.zip
Improved warning, and other enhancements in ccommon.h
Diffstat (limited to 'misc/examples/regex_replace.c')
-rw-r--r--misc/examples/regex_replace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/examples/regex_replace.c b/misc/examples/regex_replace.c
index 76664b1b..f1ea2711 100644
--- a/misc/examples/regex_replace.c
+++ b/misc/examples/regex_replace.c
@@ -12,7 +12,7 @@ bool add_10_years(int i, csview match, cstr* out) {
return false;
}
-int main()
+int main(void)
{
const char* pattern = "\\b(\\d\\d\\d\\d)-(1[0-2]|0[1-9])-(3[01]|[12][0-9]|0[1-9])\\b";
const char* input = "start date: 2015-12-31, end date: 2022-02-28";