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 | Description |
---|---|
ptr | Pointer to previously allocated memory |
size | New size to adjust the memory block to |
NULL: size adjustment was not successful.
ptr: pointer to new start of memory block
<Insert the code snippet here>