strcasecmp in c code example
Example 1: strcasecmp in c
#include <strings.h>
int strcasecmp(const char *f1, const char *f2);
Return Values (CASE INSENSETIVE):
0 if both the strings are equal.
< 1 if f1 is less than f2.
> 1 if f1 is greater than f2.
Example 2: strcasecmp c
Upon completion, strcasecmp() shall return an integer greater than, equal to, or less than 0, if the string pointed to by s1 is, ignoring case, greater than, equal to, or less than the string pointed to by s2, respectively.