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
Type: size_t

number of elements.

size
Type: 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