afit¶
Category: array
GitHub: cute_array.h
Ensures the capacity of the array is at least n
elements large.
Parameters | Description |
---|---|
a | The array. |
n | The number of elements to resize the array's capacity to. |
Return Value¶
Returns a pointer to the array.
Remarks¶
This function does not change the number of live elements, the count/size, of the array. Only the capacity.
This function is only useful as an optimization to avoid extra/unnecessary internal allocations. a
is
automatically re-assigned to a new pointer if the array was internally regrown.
Related Pages¶
dyna
asize
acount
acap
afree
apush
apop
aend
alast
aclear
aset
arev
ahash
adel
astatic