zig/example/hello_world/hello_libc.zig

7 lines
146 B
Zig
Raw Normal View History

const c = @c_import(@c_include("stdio.h"));
2016-01-25 22:21:13 -08:00
export fn main(argc: c_int, argv: &&u8) -> c_int {
c.printf(c"Hello, world!\n");
return 0;
}