zig/example/hello_world/hello_libc.zig

7 lines
144 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;
}