Add string_pbrk
This commit is contained in:
1 parent
7165740af3
commit
a780a7d144
2 files changed
+14
No files matched your search
@@ -318,6 +318,11 @@ int main(void)
|
||||
string_replace_at(s1, 6, 3, "World");
|
||||
assert(string_equal_str_p(s1, "HELLO World!"));
|
||||
|
||||
h = string_pbrk(s1, "AB");
|
||||
assert(h==STRING_FAILURE);
|
||||
h = string_pbrk(s1, "oO");
|
||||
assert(h==4);
|
||||
|
||||
string_clear (s1);
|
||||
string_clear (s2);
|
||||
|
||||
|
||||
Reference in new issue
Block a user