Query the length of a persistent string¶
ss_string_len is a function defined in ssstring.c.
Synopsis:
-
size_t
ss_string_len(const ss_string_t *str)¶
Description: This function returns the number of initial non-NUL characters in a string’s value. If str’s value is a
typicall NUL-terminated C-style string then this function’s return value is identical to strlen. However,
if str’s value has no NUL characters then this function’s return value is identical to ss_string_memlen.
Return Value: Returns the number of initial non-NUL characters in a string on success; returns SS_NOSIZE on failure.
Parallel Notes: Independent
See Also:
- ss_string_memlen: 9.12: Query the length of a persistent string
- Strings: Introduction for current chapter