Query: strncasecmp
OS: netbsd
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
STRCASECMP(3) BSD Library Functions Manual STRCASECMP(3)NAMEstrcasecmp, strncasecmp -- compare strings, ignoring caseLIBRARYStandard C Library (libc, -lc)SYNOPSIS#include <strings.h> int strcasecmp(const char *s1, const char *s2); int strncasecmp(const char *s1, const char *s2, size_t len);DESCRIPTIONThe strcasecmp() and strncasecmp() functions compare the nul-terminated strings s1 and s2 and return an integer greater than, equal to, or less than 0, according to whether s1 is lexicographically greater than, equal to, or less than s2 after translation of each corresponding character to lower-case. The strings themselves are not modified. The comparison is done using unsigned characters, so that '200' is greater than ' '. The strncasecmp() compares at most len characters.SEE ALSObcmp(3), memcmp(3), strcmp(3), strcoll(3), strxfrm(3)HISTORYThe strcasecmp() and strncasecmp() functions first appeared in 4.4BSD.NOTESIf len is zero strncasecmp() returns always 0.BSDJune 9, 1993 BSD
Related Man Pages |
---|
strncasecmp(3) - mojave |
strncasecmp_l(3) - osx |
strcasecmp(3) - osx |
strcasecmp_l(3) - osx |
strncasecmp(3) - osx |
Similar Topics in the Unix Linux Community |
---|
Comparing strings |
Compare String Variables for Greater or Less Than? |
PERL - Compare 2 strings, excluding whitespaces |