Skip to content

cf_array_setlen

Category: array
GitHub: cute_array.h


Directly sets the element count. The array must be non-NULL and have enough capacity.

#define cf_array_setlen(a, n) asetlen(a, n)
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.

cf_array_clear
cf_array_size
cf_array_fit