zig/example/hello_world/hello_libc.zig

7 lines
148 B
Zig
Raw Normal View History

2016-08-31 11:48:30 +08:00
const c = @cImport(@cInclude("stdio.h"));
2016-01-26 14:21:13 +08:00
export fn main(argc: c_int, argv: &&u8) -> c_int {
2017-03-13 23:54:56 +08:00
_ = c.printf(c"Hello, world!\n");
return 0;
}