mirror of
https://github.com/ziglang/zig.git
synced 2024-11-27 23:52:31 +00:00
10 lines
192 B
Zig
10 lines
192 B
Zig
#link("c")
|
|
export executable "hello";
|
|
|
|
extern fn printf(__format: &const u8, ...) -> c_int;
|
|
|
|
export fn main(argc: c_int, argv: &&u8) -> c_int {
|
|
printf(c"Hello, world!\n");
|
|
return 0;
|
|
}
|