strcasecmp()

compare two strings, ignoring case 

Function


SYNOPSIS

#include <string.h>

int strcasecmp(const char *s1, const char *s2);


DESCRIPTION

The strcasecmp() routine does a case-insensitive string comparison between the strings referenced by the pointers s1 and s2.


PARAMETERS

s1 

Is the null-terminated string to be compared.

s2 

Is the null-terminated string to be compared.


RETURN VALUES

The function strcasecmp() returns a positive integer if, disregarding case, string s1 is lexically greater than string s2; zero if, other than case the two strings are identical; and a negative integer if, disregarding case, string s1 is lexically less than string s2.


CONFORMANCE

UNIX 98.


MULTITHREAD SAFETY LEVEL

MT-Safe.


PORTING ISSUES

None.


AVAILABILITY

PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition


SEE ALSO

Functions:
strcmp(), strcoll(), strncasecmp(), strncmp()


PTC MKS Toolkit 9.6 Documentation Build 9.