Function darray_set_size
Defined in File darray.h
Function Documentation
-
static inline status_t darray_set_size(struct darray *const arr, size_t n_elts)
Set # elements currently in the darray.
You can’t use this function to the # elements to greater than the current capacity, even if the max # of elements for the array is greater. Use darray_resize() if you need that.
- Parameters:
arr – The dynamic array handle.
n_elts – The new # of elements in the array.
- Returns: