summaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/demos.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/demos.c b/examples/demos.c
index c10cace9..f09e0fbc 100644
--- a/examples/demos.c
+++ b/examples/demos.c
@@ -19,7 +19,7 @@ void stringdemo1()
cstr_replace(&cs, 0, "seven", "four");
printf("%s.\n", cs.str);
- cstr_take(&cs, cstr_makeFmt("%s *** %s", cs.str, cs.str));
+ cstr_take(&cs, cstr_from("%s *** %s", cs.str, cs.str));
printf("%s.\n", cs.str);
printf("find: %s\n", cs.str + cstr_find(cs, 0, "four"));