From 33b795fa93b9d27c33a19d84fa76ff5493df5d5c Mon Sep 17 00:00:00 2001 From: Alec Murphy Date: Sat, 19 Apr 2025 10:41:11 -0400 Subject: [PATCH] System/Libraries/String: Add StrLenI32() --- System/Libraries/String.HC | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/System/Libraries/String.HC b/System/Libraries/String.HC index 0b6d2ac..6ec1e65 100644 --- a/System/Libraries/String.HC +++ b/System/Libraries/String.HC @@ -2,6 +2,16 @@ #define TRIM_LEFT 1 #define TRIM_RIGHT 2 +I64 StrLenI32(I32* str) +{ + I64 res = 0; + while (*str) { + ++res; + ++str; + } + return res; +} + U0 @string_append(U8* dst, U8* fmt, ...) { U8* buf;