Files
zig/test/cases/hello_world_with_updates.2.zig
2023-06-19 12:34:42 -07:00

20 lines
294 B
Zig

extern "c" fn write(c_int, usize, usize) usize;
extern "c" fn exit(c_int) noreturn;
pub export fn main() noreturn {
print();
exit(0);
}
fn print() void {
const msg = @intFromPtr("Hello, World!\n");
const len = 14;
_ = write(1, msg, len);
}
// run
//
// Hello, World!
//