summaryrefslogtreecommitdiff
path: root/string32.c
diff options
context:
space:
mode:
Diffstat (limited to 'string32.c')
-rw-r--r--string32.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/string32.c b/string32.c
index f678ad1..d7278d2 100644
--- a/string32.c
+++ b/string32.c
@@ -13,6 +13,7 @@ String32 str32_substr(String32 s, size_t from, size_t len) {
return str32(s.str + from, len);
}
+// frees string and sets it to ""
void str32_free(String32 *s) {
free(s->str);
s->str = NULL;