OAR

RTEMS GNU Tools On-Line Library


strcasecmp

PREV UP NEXT Bookshelf

4.11: strcasecmp---case insensitive character string compare

Synopsis

#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.



PREV UP NEXT Bookshelf

Packaging copyright © 1988-2000 OAR Corporation
Context copyright by each document's author. See Free Software Foundation for information.