BSD 4_4 development
[unix-history] / usr / share / man / cat3 / strcasecmp.0
STRCASECMP(3) BSD Programmer's Manual STRCASECMP(3)
N\bNA\bAM\bME\bE
s\bst\btr\brc\bca\bas\bse\bec\bcm\bmp\bp - compare strings, ignoring case
S\bSY\bYN\bNO\bOP\bPS\bSI\bIS\bS
#\b#i\bin\bnc\bcl\blu\bud\bde\be <\b<s\bst\btr\bri\bin\bng\bg.\b.h\bh>\b>
_\bi_\bn_\bt
s\bst\btr\brc\bca\bas\bse\bec\bcm\bmp\bp(_\bc_\bo_\bn_\bs_\bt _\bc_\bh_\ba_\br _\b*_\bs_\b1, _\bc_\bo_\bn_\bs_\bt _\bc_\bh_\ba_\br _\b*_\bs_\b2);
_\bi_\bn_\bt
s\bst\btr\brn\bnc\bca\bas\bse\bec\bcm\bmp\bp(_\bc_\bo_\bn_\bs_\bt _\bc_\bh_\ba_\br _\b*_\bs_\b1, _\bc_\bo_\bn_\bs_\bt _\bc_\bh_\ba_\br _\b*_\bs_\b2, _\bs_\bi_\bz_\be_\b__\bt _\bl_\be_\bn);
D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN
The s\bst\btr\brc\bca\bas\bse\bec\bcm\bmp\bp() and s\bst\btr\brn\bnc\bca\bas\bse\bec\bcm\bmp\bp() functions compare the null-terminated
strings _\bs_\b1 and _\bs_\b2 and return an integer greater than, equal to, or less
than 0, according as _\bs_\b1 is lexicographically greater than, equal to, or
less than _\bs_\b2 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 `\0'.
The s\bst\btr\brn\bnc\bca\bas\bse\bec\bcm\bmp\bp() compares at most _\bl_\be_\bn characters.
S\bSE\bEE\bE A\bAL\bLS\bSO\bO
bcmp(3), memcmp(3), strcmp(3), strcoll(3), strxfrm(3)
H\bHI\bIS\bST\bTO\bOR\bRY\bY
The s\bst\btr\brc\bca\bas\bse\bec\bcm\bmp\bp() and s\bst\btr\brn\bnc\bca\bas\bse\bec\bcm\bmp\bp() functions first appeared in 4.4BSD.
4.4BSD June 9, 1993 1