zig/test/cases/hello_world_with_updates.3.zig
Eric Joldasov 50339f595a all: zig fmt and rename "@XToY" to "@YFromX"
Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me>
2023-06-19 12:34:42 -07:00

17 lines
233 B
Zig

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