Add macro string_sets (like string_cats)
This commit is contained in:
1 parent
5f05c1e169
commit
8a9d5f6a00
3 files changed
+11
No files matched your search
@@ -302,6 +302,8 @@ static void test0(void)
|
||||
string_set_str(s3, " world");
|
||||
string_cats(s1, s2, s3);
|
||||
assert (string_cmp_str (s1, "Hello world") == 0);
|
||||
string_sets(s1, s2, s3);
|
||||
assert (string_cmp_str (s1, "o world") == 0);
|
||||
}
|
||||
|
||||
string_clear (s1);
|
||||
|
||||
Reference in new issue
Block a user