forked from AbleOS/ableos
8 lines
129 B
Plaintext
8 lines
129 B
Plaintext
|
length := fn(ptr: ^u8): int {
|
||
|
len := 0;
|
||
|
loop if *ptr == 0 break else {
|
||
|
len += 1;
|
||
|
ptr += 1;
|
||
|
}
|
||
|
return len;
|
||
|
}
|