Resize an array whose buffer was allocated by malloc().
It's safe to pass an array whose current length is 0, the array would be allocated.
It's also safe to specify the new_length of an array to be 0, the array would be deallocated.
the type of items making up the array
the array that should be resized
the new length that the item should be resize to
See Implementation
Resize an array whose buffer was allocated by malloc().
It's safe to pass an array whose current length is 0, the array would be allocated.
It's also safe to specify the new_length of an array to be 0, the array would be deallocated.