diff options
Diffstat (limited to 'std')
-rw-r--r-- | std/io.toc | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 |