Zig 0.17.0-dev (Split by item)
This is an example of documentation generated by
ZigDoc , an alternative to Zig's built-in
Auto Doc feature. See also
examples in other modes/formats . The project being documented here (as the example) is the Zig library itself.
Zig › std/ › start.zig › callMainWithArgs
callMainWithArgs
start.callMainWithArgs
inline fn callMainWithArgs (argc : usize , argv : [*][*:0 ]u8 , envp : [:null ]?[*:0 ]u8 ) u8
File
Code
inline fn callMainWithArgs (argc : usize , argv : [*][*:0 ]u8 , envp : [:null ]?[*:0 ]u8 ) u8 {
const env_block : std .process .Environ .Block = .{ .slice = envp };
if (std .Options .debug_threaded_io ) |t | {
if (@sizeOf (std .Io .Threaded .Argv0 ) != 0 ) t .argv0 .value = argv [0 ];
t .environ = .{ .process_environ = .{ .block = env_block } };
t .environ_initialized = env_block .isEmpty ();
}
std .Thread .maybeAttachSignalStack ();
std .debug .maybeEnableSegfaultHandler ();
return callMain (argv [0 ..argc ], env_block );
}