mi_calloc

Allocate zero-initialized count elements of size bytes.

extern (C) @nogc pure @system nothrow
void*
mi_calloc
(
size_t count
,
size_t size
)

Parameters

count size_t

number of elements.

size size_t

size of each element.

Return Value

Type: void*

pointer to the allocated memory of size*count bytes, or NULL if either out of memory or when count*size overflows.

Returns a unique pointer if called with either size or count of 0.

Meta