zig/example/hello_world/hello_libc.zig
2017-03-13 11:54:56 -04:00

7 lines
148 B
Zig

const c = @cImport(@cInclude("stdio.h"));
export fn main(argc: c_int, argv: &&u8) -> c_int {
_ = c.printf(c"Hello, world!\n");
return 0;
}