Replace string_shrink2fit by string_reserve (More generic).

This commit is contained in:
Patrick Pelissier committed 2017-07-11 09:21:03 +02:00
1 parent f9a6a82af3
commit e0aa57b845
2 files changed
+13 -5

No files matched your search

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