diff options
| author | Tyge Løvset <[email protected]> | 2022-05-20 23:50:47 +0200 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2022-05-20 23:50:47 +0200 |
| commit | c0de7d59a09417e2e18909f808258e909c36ee09 (patch) | |
| tree | e23920851d0754f9419af09618865d83c23d1d14 /examples | |
| parent | 403716e64f5a8732bdaeca43838195e8db3b0ac3 (diff) | |
| download | STC-modified-c0de7d59a09417e2e18909f808258e909c36ee09.tar.gz STC-modified-c0de7d59a09417e2e18909f808258e909c36ee09.zip | |
Removed cstr_from_replace_all_sv(), Added cstr_replace_first(). Renamed argument names.
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/demos.c | 2 |
1 files changed, 1 insertions, 1 deletions
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)));
|
