These docs are for v1.3.0. Click to read the latest docs for v1.6.

realloc

Reallocate the given area of memory.

Reallocate the given area of memory, which is allocated by malloc(), calloc(), or realloc() previously

Parameters

  • ptr - Pointer to the memory area to be reallocated

  • size - New size of the memory

Returns

void* - Pointer to the new reallocated memory