Skip to content

cf_array_capacity

Category: array
GitHub: cute_array.h


Returns the capacity of the array (number of elements allocated), or 0 if NULL.

#define cf_array_capacity(a) acap(a)
Parameters Description
a The array.

Return Value

Returns the number of elements a can hold before the next reallocation.

Remarks

Shortform: acap(a).

cf_array_size
cf_array_fit
cf_array_push
cf_array_free