[ Manpage overview ] [ To start of mcntp pages ]
Table of Contents

Name

stricmp - compare strings case independent

Synopsis

#include <mystring.h>

int
stricmp(const char *s1, const char *s2)

int
strnicmp(const char *s1, const char *s2, size_t n)

Description

stricmp() and strnicmp() functions lexicographically compare the nullterminated strings s1 and s2

Return Values

The strimp() and strnicmp() return an integer greater than, equal to, or less than 0, according as the string s1 is greater than, equal to, or less than the string s2. The comparison is done using unsigned characters, so that `\200' is greater than `\0'.

The strnicmp() compares not more than n characters.

See Also

strcmp(3) , strncmp(3)

History

The strcmp() and strncmp() function are part of MCNTP, the diploma thesis Transport of NetNews via IP-multicast of the author.

Author

Heiko W.Rupp (hwr@pilhuhn.de)

Bugs

None known yet. If you find any, then please report them to <mcntpbugs@pilhuhn.de>


Table of Contents

$Id: stricmp.3.html,v 1.5 2001/11/22 10:24:37 pilhuhn Exp $