Add first prototype of string with stack allocation.

This commit is contained in:
Patrick Pelissier committed 2019-04-20 12:33:08 +02:00
1 parent b356c29c89
commit 866721d067
2 files changed
+237 -183

No files matched your search

+1 -1
View File
@@ -455,7 +455,7 @@ static void test0(void)
string_set_str (s1, "");
assert (string_capacity(s1) > 0);
string_reserve (s1, 0);
assert (string_capacity(s1) == 0);
assert (string_capacity(s1) == sizeof (str_heap_t) - 1);
string_set_str(s1, "HELLO XXX!");
string_replace_at(s1, 6, 3, "World");