Replace string_shrink2fit by string_reserve (More generic).
This commit is contained in:
1 parent
f9a6a82af3
commit
e0aa57b845
2 files changed
+13
-5
No files matched your search
@@ -221,7 +221,7 @@ int main(void)
|
||||
string_clear (s2);
|
||||
string_init_move(s2, s1);
|
||||
assert (string_equal_str_p(s2, "RESTART"));
|
||||
string_shrink2fit(s2);
|
||||
string_reserve(s2, 0);
|
||||
assert (string_equal_str_p(s2, "RESTART"));
|
||||
string_init(s1);
|
||||
string_move(s1, s2);
|
||||
|
||||
Reference in new issue
Block a user