mi_mallocn

Allocate count elements of size bytes.

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

Parameters

count
Type: size_t

The number of elements.

size
Type: size_t

The size of each element.

Return Value

Type: void*

A pointer to a block of count * size bytes, or NULL if out of memory or if count * size overflows.

If there is no overflow, it behaves exactly like mi_malloc(p,count*size).

Meta