Function rcutils_strcasecmp
Defined in File strcasecmp.h
Function Documentation
-
int rcutils_strcasecmp(const char *s1, const char *s2, int *value)
Case insensitive string compare.
This function compares two strings ignoring case in a portable way. This performs a byte-by-byte comparison of the strings s1 and s2, ignoring the case of the characters.
- Parameters:
s1 – [in] Null terminated string to compare.
s2 – [in] Null terminated string to compare.
value – [out] Pointer to comparison result. An integer less than, equal to, or greater than zero if s1 is, after ignoring case, found to be less than, to match, or be greater than s2, respectively.
- Returns:
0 if method succeeded, or
- Returns:
-1 if failed.