summaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/regex2.c1
-rw-r--r--examples/regex_replace.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/examples/regex2.c b/examples/regex2.c
index 384b4a36..c3f1e6d6 100644
--- a/examples/regex2.c
+++ b/examples/regex2.c
@@ -1,5 +1,6 @@
#define i_implement
#include <stc/cstr.h>
+#include <stc/csview.h>
#include <stc/cregex.h>
int main()
diff --git a/examples/regex_replace.c b/examples/regex_replace.c
index ceecf4dd..eba31491 100644
--- a/examples/regex_replace.c
+++ b/examples/regex_replace.c
@@ -30,7 +30,7 @@ int main()
printf("us+10: %s\n", cstr_str(&str));
/* Wrap first date inside []: */
- cstr_take(&str, cregex_replace(input, pattern, "[$0]", 1));
+ cstr_take(&str, cregex_replace_p(input, pattern, "[$0]", 1));
printf("brack: %s\n", cstr_str(&str));
/* Shows how to compile RE separately */