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
Allocates an array of n items of type T and sets all the items to undefined. Depending on the Allocator implementation, it may be required to call free once the memory is no longer needed, to avoid a resource leak. If the Allocator implementation is unknown, then correct code will call free when done.
Allocates an array of
nitems of typeTand sets all the items toundefined. Depending on the Allocator implementation, it may be required to callfreeonce the memory is no longer needed, to avoid a resource leak. If theAllocatorimplementation is unknown, then correct code will callfreewhen done.For allocating a single item, see
create.