Compare persistent string with C string¶
ss_string_cmp_s
is a function defined in ssstring.c.
Synopsis:
-
int
ss_string_cmp_s
(const ss_string_t *str, const char *s)¶
Description: This function is similar to strcmp
but its first argument is a persistent string instead. It compares the
value of the persistent string with the C string s
.
Return Value: Returns -1 if the value of str
is less than s
, 1 if str
is greater than s
, and zero if they are
equal in value. Returns -2 on failure (beware that this is a refinement of the more general negative returns
on failure used throughout SSlib).
Parallel Notes: Independent
See Also:
- Strings: Introduction for current chapter