From 39dd684496a6750a2458873e3c736bd8569e8db0 Mon Sep 17 00:00:00 2001 From: Ekaitz Zarraga Date: Fri, 22 Aug 2025 00:38:36 +0200 Subject: text-buffer: Add `text_buffer_append_str` function --- src/text-buffer.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/text-buffer.c') diff --git a/src/text-buffer.c b/src/text-buffer.c index 215e446..cc764bc 100644 --- a/src/text-buffer.c +++ b/src/text-buffer.c @@ -47,6 +47,16 @@ text_buffer_append (text_buffer *tb, char c) tb->contents[tb->used++] = c; } +void +text_buffer_append_str (text_buffer *tb, char *c, size_t len) +{ + size_t i; + for (i=0; i