strcmp/strcoll
Syntax
#include
<string.h>
int
strcoll(sl, s2)
char *s1, *s2;
int
strcmp(sl, s2)
char *s1, *s2;
Defined in
strcmp. c in rts. src
String Compare
Description
The strcmp and strcoll functions compare s2 with s
1.
The functions are
equivalent; both functions are supported to provide compatibility with ANSI
C.
The functions return one of the following values:
<
0
if *s1 is less than *s2.
o
if *s1 is equal to *s2.
> 0
if *s1 is greater than *s2.
6-68