summaryrefslogtreecommitdiff
path: root/std/io.toc
blob: ab3549b54c4e2d3a57afd5a1f74e078c8a85c0f2 (plain)
1
2
3
4
5
6
7
8
9
10
pkg "io";

c_putchar :: fn(i32) i32 = #foreign "putchar", "libc.so.6";

#export puts ::= fn(x: []char) {
	for c := x {
		 c_putchar(c as i32);
	};
	c_putchar('\n' as i32);
};