From c3da108c2d41853beb49a90a1f43a2a9a158c385 Mon Sep 17 00:00:00 2001 From: cflip Date: Tue, 31 Jan 2023 10:44:54 -0700 Subject: Add functions to delete and clear a textbuf --- textbuf.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'textbuf.h') 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 -- cgit v1.2.3