From 19482e5ef5b6710b4b9a52edcb1bb39692336d7a Mon Sep 17 00:00:00 2001 From: Anton Kling Date: Sun, 15 Dec 2024 01:30:24 +0100 Subject: libc: Add setenv/getenv --- userland/libc/include/tb/sv.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'userland/libc/include/tb') diff --git a/userland/libc/include/tb/sv.h b/userland/libc/include/tb/sv.h index 0ffe266..7062741 100644 --- a/userland/libc/include/tb/sv.h +++ b/userland/libc/include/tb/sv.h @@ -11,6 +11,8 @@ #define C_TO_SV(_c_string) \ ((struct sv){.length = strlen(_c_string), .s = (_c_string)}) +#define sv_length(a) ((a).length) + struct sv { const char *s; size_t length; -- cgit v1.2.3