os_realloc

void *os_realloc(void *ptr, size_t size)

Tries to resize previously allocated memory block, and returns pointer to resized memory. ptr can be NULL, in which case the call is similar to calling os_malloc().

Arguments

ArgumentsDescription
ptrPointer to previously allocated memory
sizeNew size to adjust the memory block to

Returned values

NULL: size adjustment was not successful.
ptr: pointer to new start of memory block

Notes

Example

<Insert the code snippet here>