strcasecmp---case insensitive character string compareSynopsis
#include <string.h> int strcasecmp(const char *a, const char *b);
Description
strcasecmp compares the string at a to
the string at b in a case-insensitive manner.
Returns
If *a sorts lexicographically after *b (after
both are converted to upper case), strcasecmp returns a
number greater than zero. If the two strings match,
strcasecmp returns zero. If *a sorts
lexicographically before *b, strcasecmp returns a
number less than zero.
Portability
strcasecmp is in the Berkeley Software Distribution.
strcasecmp requires no supporting OS subroutines. It uses
tolower() from elsewhere in this library.
Packaging copyright © 1988-2000 OAR Corporation Context copyright by each document's author. See Free Software Foundation for information.