mirror of
https://github.com/ziglang/zig.git
synced 2025-12-06 22:33:08 +00:00
11 lines
248 B
Zig
11 lines
248 B
Zig
pub export fn main(argc: c_int, argv: [*]const [*:0]const u8) c_int {
|
|
const args = argv[0..@intCast(argc)];
|
|
std.debug.print("Hello! argv[0] is '{s}'\n", .{args[0]});
|
|
return 0;
|
|
}
|
|
|
|
const std = @import("std");
|
|
|
|
// exe=succeed
|
|
// link_libc
|