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.

orderZ

Compares two many-item pointers with NUL-termination lexicographically.

mem.orderZ
pub fn orderZ(comptime T: type, lhs: [*:0]const T, rhs: [*:0]const T) math.Order

File

lib/std/mem.zig:687

Code

pub fn orderZ(comptime T: type, lhs: [*:0]const T, rhs: [*:0]const T) math.Order {
    return boundedOrderZ(T, lhs, rhs, std.math.maxInt(usize));
}