[Previous] [Contents] [Next]

wcscoll()

Compare two strings using the locale's collating sequence

Synopsis:

#include <wchar.h>

int wcscoll( const wchar_t * ws1,
             const wchar_t * ws2 );

Library:

libc

Description:

The wcscoll() function compares the string pointed to by ws1 to the string pointed to by ws2. The comparison uses the LC_COLLATE collating sequence selected by the setlocale() function.

Returns:

< 0
ws1 is less than ws2.
0
ws1 is equal to ws2.
> 0
ws1 is greater than ws2.

Classification:

ANSI

wcscoll()

Safety:
Cancellation point No
Interrupt handler No
Signal handler Yes
Thread No

See also:

setlocale()

"String manipulation functions" and "Wide-character functions" in the summary of functions chapter.


[Previous] [Contents] [Next]