summaryrefslogtreecommitdiff
path: root/userland/libc/include/tb/sv.h
diff options
context:
space:
mode:
authorAnton Kling <anton@kling.gg>2024-10-14 16:37:18 +0200
committerAnton Kling <anton@kling.gg>2024-10-14 16:37:18 +0200
commit3fd4be7cb2744d852cf99e627f7bfea3fd83bd3c (patch)
tree0d2e2a9d5b85aaf631e551ba88be0930e715c711 /userland/libc/include/tb/sv.h
parent3011c0589b8ab7cbfed127ce45a04f154441b406 (diff)
libc: Copy string views to preallocated buffers
Diffstat (limited to 'userland/libc/include/tb/sv.h')
-rw-r--r--userland/libc/include/tb/sv.h1
1 files changed, 1 insertions, 0 deletions
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);