From c0de7d59a09417e2e18909f808258e909c36ee09 Mon Sep 17 00:00:00 2001 From: Tyge Løvset Date: Fri, 20 May 2022 23:50:47 +0200 Subject: Removed cstr_from_replace_all_sv(), Added cstr_replace_first(). Renamed argument names. --- examples/demos.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples') diff --git a/examples/demos.c b/examples/demos.c index ac7cd810..1304cf85 100644 --- a/examples/demos.c +++ b/examples/demos.c @@ -13,7 +13,7 @@ void stringdemo1() cstr_erase_n(&cs, 7, 5); // -nine printf("%s.\n", cstr_str(&cs)); - cstr_replace(&cs, cstr_find(cs, "seven"), 5, "four"); + cstr_replace_first(&cs, "seven", "four"); printf("%s.\n", cstr_str(&cs)); cstr_take(&cs, cstr_from_fmt("%s *** %s", cstr_str(&cs), cstr_str(&cs))); -- cgit v1.2.3