summaryrefslogtreecommitdiff
path: root/textbuf.h
diff options
context:
space:
mode:
authorcflip <cflip@cflip.net>2023-01-31 10:44:54 -0700
committercflip <cflip@cflip.net>2023-01-31 10:44:54 -0700
commitc3da108c2d41853beb49a90a1f43a2a9a158c385 (patch)
treef5e95175aad8db3d8c7a19d5a6c021d4076c9f68 /textbuf.h
parent24addd792a50ff47a904f819375bed32b32039a0 (diff)
Add functions to delete and clear a textbuf
Diffstat (limited to 'textbuf.h')
-rw-r--r--textbuf.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/textbuf.h b/textbuf.h
index e5e0f03..23b75d7 100644
--- a/textbuf.h
+++ b/textbuf.h
@@ -17,6 +17,8 @@ struct textbuf {
struct textbuf textbuf_init();
void textbuf_append(struct textbuf *textbuf, const char *str, int len);
+void textbuf_delete(struct textbuf *textbuf);
+void textbuf_clear(struct textbuf *textbuf);
void textbuf_free(struct textbuf *textbuf);
#endif