ableos/sysdata/libraries/stn/src/string.hb

8 lines
129 B
Plaintext
Raw Normal View History

2024-07-07 08:35:07 -05:00
length := fn(ptr: ^u8): int {
len := 0;
loop if *ptr == 0 break else {
len += 1;
ptr += 1;
}
return len;
}