Add string_pbrk

This commit is contained in:
Patrick Pelissier committed 2017-08-02 22:24:12 +02:00
1 parent 7165740af3
commit a780a7d144
2 files changed
+14

No files matched your search

+5
View File
@@ -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);