1
0
Fork 0
forked from koniifer/ableos

some more

This commit is contained in:
mlokr 2024-09-04 18:43:08 +02:00
parent 69f362b53d
commit 3763805c3a

View file

@ -276,7 +276,7 @@ str_len := fn(str: ^u8): int {
main := fn(): int { main := fn(): int {
// when string ends with '\0' its a C string and thus type is '^u8' // when string ends with '\0' its a C string and thus type is '^u8'
some_str := "abඞ\n\r\t\{ff}\{fff0f0ff}\0" some_str := "abඞ\n\r\t\{35}\{36373839}\0"
len := str_len(some_str) len := str_len(some_str)
some_other_str := "fff\0" some_other_str := "fff\0"
lep := str_len(some_other_str) lep := str_len(some_other_str)