(BSD System Compatibility)

string(3bsd)


string: strcasecmp, strncasecmp -- (BSD) string operations

Synopsis

   /usr/ucb/cc [flag . . . ] file . . .
   

int strcasecmp(char *s1, char *s2);

int strncasecmp(char *s1, char *s2, int n);

Description

The strcasecmp and strncasecmp routines compare the strings and ignore differences in case. These routines assume the ASCII character set when equating lower and upper case characters.

These functions operate on null-terminated strings. They do not check for overflow of any receiving string.

References

bstring(3C), malloc(3C), string(3C)

Notices

strcasecmp and strncasecmp use native character comparison as above and assume the ASCII character set.
© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004