zig/example/hello_world/hello_libc.zig

7 lines
148 B
Zig
Raw Normal View History

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