From 3fd4be7cb2744d852cf99e627f7bfea3fd83bd3c Mon Sep 17 00:00:00 2001 From: Anton Kling Date: Mon, 14 Oct 2024 16:37:18 +0200 Subject: libc: Copy string views to preallocated buffers --- userland/libc/include/tb/sv.h | 1 + 1 file changed, 1 insertion(+) (limited to 'userland/libc/include/tb') diff --git a/userland/libc/include/tb/sv.h b/userland/libc/include/tb/sv.h index 3d4f9fb..e1ca453 100644 --- a/userland/libc/include/tb/sv.h +++ b/userland/libc/include/tb/sv.h @@ -17,6 +17,7 @@ struct sv { }; char *SV_TO_C(struct sv s); +size_t sv_to_cstring_buffer(struct sv s, char *buffer, size_t length); struct sv sv_split_delim(const struct sv input, struct sv *rest, char delim); struct sv sv_end_split_delim(const struct sv input, struct sv *rest, char delim); -- cgit v1.2.3