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.

fatal

Logs an error and then terminates the process with exit code 1.

process.fatal
pub fn fatal(comptime format: []const u8, format_arguments: anytype) noreturn

File

lib/std/process.zig:696

Code

pub fn fatal(comptime format: []const u8, format_arguments: anytype) noreturn {
    std.log.err(format, format_arguments);
    exit(1);
}