Pointer to the memory block whose size is to be changed.
size
The new size for the memory block.
Changes the size of the block of memory pointed to by ptr, which was previously allocated using the
awMalloc function. A pointer to the new memory block is returned. This function returns a NULL pointer if additional memory could not be allocated.
If size is less than or equal to the previous size of the allocated memory block, any remaining memory contents will remain unchanged.