mirror of
https://github.com/ziglang/zig.git
synced 2024-11-27 07:32:44 +00:00
fix c hello world example
This commit is contained in:
parent
9193a3cdad
commit
289bfa890b
@ -1,4 +1,4 @@
|
||||
const c = @c_import(@c_include("stdio.h"));
|
||||
const c = @cImport(@cInclude("stdio.h"));
|
||||
|
||||
export fn main(argc: c_int, argv: &&u8) -> c_int {
|
||||
c.printf(c"Hello, world!\n");
|
||||
|
Loading…
Reference in New Issue
Block a user