aboutsummaryrefslogtreecommitdiff
path: root/std
diff options
context:
space:
mode:
Diffstat (limited to 'std')
-rw-r--r--std/io.amal5
1 files changed, 3 insertions, 2 deletions
diff --git a/std/io.amal b/std/io.amal
index 9023280..6acfb1b 100644
--- a/std/io.amal
+++ b/std/io.amal
@@ -1,5 +1,6 @@
extern const print_extern: fn() i32;
+extern const printf: fn(fmt: ?&c_char, ...) c_int;
-pub const print = fn() i32 {
- return print_extern();
+pub const print = fn(fmt: str, arg1: str) i32 {
+ return printf(fmt, arg1);
} \ No newline at end of file