zig/example/hello_world/hello.zig
2015-12-01 14:41:03 -07:00

13 lines
202 B
Zig

export executable "hello";
#link("c")
extern {
fn puts(s: *const u8) -> i32;
fn exit(code: i32) -> unreachable;
}
export fn _start() -> unreachable {
puts("Hello, world!");
exit(0);
}