mirror of
https://github.com/ziglang/zig.git
synced 2024-11-27 23:52:31 +00:00
ac630d354d
add explicit casting support from array to string
13 lines
224 B
Zig
13 lines
224 B
Zig
export executable "hello";
|
|
|
|
#link("c")
|
|
extern {
|
|
fn printf(__format: *const u8, ...) -> i32;
|
|
fn exit(__status: i32) -> unreachable;
|
|
}
|
|
|
|
export fn _start() -> unreachable {
|
|
printf("Hello, world!\n");
|
|
exit(0);
|
|
}
|