summaryrefslogtreecommitdiff
path: root/std/io.toc
diff options
context:
space:
mode:
Diffstat (limited to 'std/io.toc')
-rw-r--r--std/io.toc8
1 files changed, 8 insertions, 0 deletions
diff --git a/std/io.toc b/std/io.toc
index 147834f..e9d73d6 100644
--- a/std/io.toc
+++ b/std/io.toc
@@ -33,4 +33,12 @@ stdout_fwrite ::= fn(data: &u8, size: u64, nmemb: u64) {
#export puts ::= fn(x: []char) {
stdout_fwrite(&x[0] as &u8, 1, x.len as u64);
toc_putchar('\n');
+};
+
+arr ::= pkg "arr";
+
+#export puts_arr ::= fn(x: arr.Arr([]char)) {
+ for s := x.data {
+ puts(s);
+ }
}; \ No newline at end of file