strcasecmp
expression function
Compares two strings, ignoring case.
See also: strcmp, strmatch, strcasematch
Usage
strcasecmp(s1, s2)
-
Returns a negative number if s1 is lexicographically less than s2
-
Returns a positive number if s1 is lexicographically greater than s2
-
Returns 0 if s1 is equal to s2
This function is case-insensitive. For case-sensitive comparison, use strcmp.