mirror of
https://git.checksum.fail/alec/erythros
synced 2025-12-12 05:59:53 +02:00
System/Libraries/String: Add StrLenI32()
This commit is contained in:
@@ -2,6 +2,16 @@
|
|||||||
#define TRIM_LEFT 1
|
#define TRIM_LEFT 1
|
||||||
#define TRIM_RIGHT 2
|
#define TRIM_RIGHT 2
|
||||||
|
|
||||||
|
I64 StrLenI32(I32* str)
|
||||||
|
{
|
||||||
|
I64 res = 0;
|
||||||
|
while (*str) {
|
||||||
|
++res;
|
||||||
|
++str;
|
||||||
|
}
|
||||||
|
return res;
|
||||||
|
}
|
||||||
|
|
||||||
U0 @string_append(U8* dst, U8* fmt, ...)
|
U0 @string_append(U8* dst, U8* fmt, ...)
|
||||||
{
|
{
|
||||||
U8* buf;
|
U8* buf;
|
||||||
|
|||||||
Reference in New Issue
Block a user