The
strcmp();
and
strncmp();
functions lexicographically compare the NUL-terminated strings
s1
and
s2.
RETURN VALUES
The
strcmp();
and
strncmp();
return an integer greater than, equal to, or less than 0, according
to whether the string
s1
is greater than, equal to, or less than the string
s2.
The comparison is done using unsigned characters, so that
"\e200"
is greater than
"\e0".
strncmp();
compares at most
len
characters.