| 1 | pub export fn main(argc: c_int, argv: [*]const [*:0]const u8) c_int { |
| 2 | const args = argv[0..@intCast(argc)]; |
| 3 | std.debug.print("Hello! argv[0] is '{s}'\n", .{args[0]}); |
| 4 | return 0; |
| 5 | } |
| 6 | |
| 7 | const std = @import("std"); |
| 8 | |
| 9 | // exe=succeed |
| 10 | // link_libc |