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 standard library. Public Function
Like print but returned slice has the provided sentinel.
Returned slice can be deallocated with free. If an arena-style allocator is used instead, such as std.heap.ArenaAllocator, then no call to free is necessary. Illegal behavior occurs if the returned slice is type-coerced to a slice without the sentinel and then passed to free.
Like
printbut returned slice has the provided sentinel.Returned slice can be deallocated with
free. If an arena-style allocator is used instead, such asstd.heap.ArenaAllocator, then no call tofreeis necessary. Illegal behavior occurs if the returned slice is type-coerced to a slice without the sentinel and then passed tofree.