Add function string_subset
This commit is contained in:
1 parent
ebf440731d
commit
45f8b31efc
3 files changed
+23
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user