summaryrefslogtreecommitdiff
path: root/userland/libc/include/tb/sv.h
diff options
context:
space:
mode:
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;