string(3bsd) (BSD System Compatibility)


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.
30 January 1998
© 1998 The Santa Cruz Operation, Inc. All rights reserved.