zig/example/hello_world/hello.zig
2015-12-15 02:47:39 -07:00

10 lines
212 B
Zig

export executable "hello";
use "std.zig";
pub fn main(argc: isize, argv: &&u8, env: &&u8) -> i32 {
// TODO implicit coercion from array to string
print_str("Hello, world!\n" as string);
return 0;
}