diff options
author | Anton Kling <anton@kling.gg> | 2024-12-15 01:30:24 +0100 |
---|---|---|
committer | Anton Kling <anton@kling.gg> | 2024-12-15 01:30:24 +0100 |
commit | 19482e5ef5b6710b4b9a52edcb1bb39692336d7a (patch) | |
tree | 4b36953acd4ba6975a16ec57643267ac5f05b8bf /userland/libc/include/tb/sv.h | |
parent | fd724fc40e527a87d4e521cd704283cdf10f51c4 (diff) |
libc: Add setenv/getenv
Diffstat (limited to 'userland/libc/include/tb/sv.h')
-rw-r--r-- | userland/libc/include/tb/sv.h | 2 |
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; |