some std wrappers around libc

This commit is contained in:
2025-08-03 10:37:18 +02:00
parent 6fc80626dc
commit 3fd62c6083
8 changed files with 101 additions and 56 deletions

View File

@@ -6,8 +6,8 @@ func main[] : I64
if a * b > out
let s: String = str.from_i64(a * b)
let s_rev: String = str.reverse(s)
if c.strcmp(s, s_rev) == 0
if str.equal(s, s_rev)
out = a * b
c.free(s)
c.free(s_rev)
mem.free(s)
mem.free(s_rev)
io.print_i64(out)