From 226d861c9ebb7f09f95665d07d9ab5c6b7ed7d6f Mon Sep 17 00:00:00 2001 From: Anton Kling Date: Thu, 3 Oct 2024 15:08:45 +0200 Subject: libc: small changes --- userland/libc/include/tb/sb.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'userland/libc/include/tb/sb.h') diff --git a/userland/libc/include/tb/sb.h b/userland/libc/include/tb/sb.h index 84f8161..06aa084 100644 --- a/userland/libc/include/tb/sb.h +++ b/userland/libc/include/tb/sb.h @@ -11,13 +11,15 @@ struct sb { struct sv; -void sb_init(struct sb *ctx); +void sb_init(struct sb *ctx, size_t starting_capacity); void sb_free(struct sb *ctx); void sb_reset(struct sb *ctx); int sb_isempty(const struct sb *ctx); void sb_append_char(struct sb *ctx, char c); int sb_delete_right(struct sb *ctx, size_t n); void sb_append(struct sb *ctx, const char *s); +void sb_append_buffer(struct sb *ctx, const char *buffer, + size_t length); void sb_append_sv(struct sb *ctx, struct sv sv); void sb_prepend_sv(struct sb *ctx, struct sv sv); #endif -- cgit v1.2.3