Function darray_resize
Defined in File darray.h
Function Documentation
-
status_t darray_resize(struct darray *arr, size_t size)
Resize a darray.
Resizes the darray to the specified size. If size < current capacity of the array, then the array is reduced to its first “size” elements. If size > current capacity, then the array is increased to be able to hold “size” elements.
- Parameters:
arr – The darray handle.
size – The new size.
- Returns: