strcoll
◄Summary► ◄Up► ◄Contents► ◄Index► ◄Back►
────────────────────────────────────────────────────────────────────────────
The strcoll function compares two null-terminated strings. It
differs from strcmp in that it uses locale-specific information
to provide locale-specific collating sequences. Currently, only
the "C" locale is supported, rendering strcoll identical to
strcmp.
The strcoll function compares <string1> and <string2> and returns
a value indicating their relationship, as follows:
Value Meaning
< 0 <string1> is less than <string2>
= 0 <string1> is identical to <string2>
> 0 <string1> is greater than <string2>
Return Value
The return value for this function is described above.
-♦-