void * ds_xcalloc(size_t count, size_t size)
Replicates behaviour of calloc from libc, but fails on memory allocation errors.
void * ds_xmalloc(size_t size)
Replicates behaviour of malloc from libc, but fails on memory allocation errors.
A full representation of a data type, used to achieve polymorphism in the implementation of data stru...
const t_type * type
The type of items in this array.
t_array * array_zeros(const t_type *type, size_t size)
Initializes a new array of the specified size, filled with zeros.
size_t capacity
The capacity of this array.
size_t size
The number of items in this array.