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