Add function string_replace_at

(Compatible with C++ interface)
This commit is contained in:
Patrick Pelissier committed 2017-08-02 22:02:49 +02:00
1 parent 750de41984
commit 7165740af3
2 files changed
+19

No files matched your search

+4
View File
@@ -314,6 +314,10 @@ int main(void)
string_reserve (s1, 0);
assert (string_capacity(s1) == 0);
string_set_str(s1, "HELLO XXX!");
string_replace_at(s1, 6, 3, "World");
assert(string_equal_str_p(s1, "HELLO World!"));
string_clear (s1);
string_clear (s2);