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.

imaxdiv

inttypes.imaxdiv
fn imaxdiv(a: intmax_t, b: intmax_t) callconv(.c) imaxdiv_t

File

lib/c/inttypes.zig:21

Code

fn imaxdiv(a: intmax_t, b: intmax_t) callconv(.c) imaxdiv_t {
    return .{
        .quot = @divTrunc(a, b),
        .rem = @rem(a, b),
    };
}