mirror of
https://github.com/odin-lang/Odin.git
synced 2026-01-01 02:42:09 +00:00
9 lines
149 B
Odin
9 lines
149 B
Odin
putchar :: proc(c : i32) -> i32 #foreign
|
|
|
|
print_string :: proc(s : string) {
|
|
for i := 0; i < len(s); i++ {
|
|
c := cast(i32)s[i];
|
|
putchar(c);
|
|
}
|
|
}
|