![]() -> Click here to learn how to get live help <- |
STRCASECMPIndexNAMEstrcasecmp, strncasecmp - compare two strings ignoring caseSYNOPSIS#include <strings.h> int strcasecmp(const char *s1, const char *s2); int strncasecmp(const char *s1, const char *s2, size_t n); DESCRIPTIONThe fBstrcasecmp()fP function compares the two strings fIs1fP and fIs2fP, ignoring the case of the characters. It returns an integer less than, equal to, or greater than zero if fIs1fP is found, respectively, to be less than, to match, or be greater than fIs2fP.The fBstrncasecmp()fP function is similar, except it only compares the first fInfP characters of fIs1fP. RETURN VALUEThe fBstrcasecmp()fP and fBstrncasecmp()fP functions return an integer less than, equal to, or greater than zero if fIs1fP (or the first fInfP bytes thereof) is found, respectively, to be less than, to match, or be greater than fIs2fP.CONFORMING TOBSD 4.4SEE ALSObcmp(3), memcmp(3), strcmp(3), strcoll(3), strncmp(3), wcscasecmp(3), wcsncasecmp(3)
Index |