mi_reallocn

Re-allocate memory to count elements of size bytes.

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

Parameters

p void*

Pointer to a previously allocated block (or NULL).

count size_t

The number of elements.

size size_t

The size of each element.

Return Value

Type: void*

A pointer to a re-allocated 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_realloc(p,count*size).

Meta