summaryrefslogtreecommitdiff
path: root/string32.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2021-01-24 19:27:49 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2021-01-24 19:27:49 -0500
commitf6d49d377ac136fc29457b3b4501f0488b6412e3 (patch)
tree1ff4a6885decabcc4f639a0420b94c836e01940f /string32.c
parentaccf188e7c84ee627d5e4cfe12c141e929699830 (diff)
copy/cut/paste
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;