Add function string_subset

This commit is contained in:
Patrick Pelissier committed 2020-11-19 22:31:33 +01:00
1 parent ebf440731d
commit 45f8b31efc
3 files changed
+23

No files matched your search

+3
View File
@@ -201,6 +201,9 @@ static void test0(void)
string_mid (s1, j, 2);
assert (string_cmp_str (s1, ", ") == 0);
string_subset (s1, s2, j, 2);
assert (string_cmp_str (s1, ", ") == 0);
string_set (s1, s2);
i = string_replace_str (s1, "world", "Paul");
assert (i != STRING_FAILURE);