zig/example/hello_world/hello.zig
Andrew Kelley ac630d354d std: print_str no longer requires length argument
add explicit casting support from array to string
2015-12-12 02:05:08 -07:00

10 lines
231 B
Zig

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