Skip to content

scap

Category: string
GitHub: cute_string.h


Gets the capacity of the string.

#define scap(s) cf_string_cap(s)
Parameters Description
s The string. Can be NULL.

Remarks

This is not the number of characters, but the size of the internal buffer. The capacity automatically grows as necessary, but you can use sfit to ensure a minimum capacity manually, as an optimization.

sdyna
slen
scount
sempty