some std wrappers around libc
This commit is contained in:
@@ -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)
|
||||
Reference in New Issue
Block a user