diff options
author | Anton Kling <anton@kling.gg> | 2024-10-03 15:08:45 +0200 |
---|---|---|
committer | Anton Kling <anton@kling.gg> | 2024-10-03 15:08:45 +0200 |
commit | 226d861c9ebb7f09f95665d07d9ab5c6b7ed7d6f (patch) | |
tree | d900c3437d3d65ee7bd88474586dc6dd947b14ce /userland/libc/include/tb/sb.h | |
parent | 64b0b49a1f23da9faa680f8158cb8a12cd4d118c (diff) |
libc: small changes
Diffstat (limited to 'userland/libc/include/tb/sb.h')
-rw-r--r-- | userland/libc/include/tb/sb.h | 4 |
1 files changed, 3 insertions, 1 deletions
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 |