COHERENT manpages

This page displays the COHERENT manpage for strcasencmp() [Case-insensitive string comparison].

List of available manpages
Index


strcasencmp() -- Sockets Function (libsocket)

Case-insensitive string comparison
int strcasencmp (left, right, n)
char *left, *right;
int n;

Function  strcasencmp() compares  the  first n  bytes of  strings left  and
right. It returns  zero if the first n bytes  of the strings are identical;
-1 if  left is lexigraphically  less than (that  is, occurs earlier  in the
alphabet) than  right; or one if if left  is lexicographically greater than
right. Unlike  the function strncmp(),  strcasencmp() ignores case  when it
compares the strings.

See Also

libsocket,
strncmp(),
string.h