cf_array_setlen¶
Category: array
GitHub: cute_array.h
Directly sets the element count. The array must be non-NULL and have enough capacity.
| Parameters | Description |
|---|---|
a |
The array. Must be non-NULL. |
n |
The new element count. |
Remarks¶
Shortform: asetlen(a, n). Use cf_array_fit first to ensure sufficient capacity.