aboutsummaryrefslogtreecommitdiff
path: root/doc/langref/libc_export_entry_point.zig
blob: bec791a295be1eb461d460ad8d1a2888dc70daf8 (plain)
1
2
3
4
5
6
7
8
9
10
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