mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-22 13:44:59 -07:00
String support
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user