summaryrefslogtreecommitdiff
path: root/userland/libc/include/tb/sv.h
diff options
context:
space:
mode:
authorAnton Kling <anton@kling.gg>2024-12-15 01:30:24 +0100
committerAnton Kling <anton@kling.gg>2024-12-15 01:30:24 +0100
commit19482e5ef5b6710b4b9a52edcb1bb39692336d7a (patch)
tree4b36953acd4ba6975a16ec57643267ac5f05b8bf /userland/libc/include/tb/sv.h
parentfd724fc40e527a87d4e521cd704283cdf10f51c4 (diff)
libc: Add setenv/getenv
Diffstat (limited to 'userland/libc/include/tb/sv.h')
-rw-r--r--userland/libc/include/tb/sv.h2
1 files changed, 2 insertions, 0 deletions
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;