|
NAMEwcscoll —
compare wide strings according to current collation
LIBRARYStandard C Library (libc, -lc)SYNOPSIS#include <wchar.h>
int
DESCRIPTIONThewcscoll () function compares the null-terminated
strings s1 and s2 according to the
current locale collation order. In the
“C ” locale,
wcscoll () is equivalent to
wcscmp ().
RETURN VALUESThewcscoll () function returns an integer greater than,
equal to, or less than 0, if s1 is greater than, equal
to, or less than s2.
No return value is reserved to indicate errors; callers should set
errno to 0 before calling
ERRORSThewcscoll () function will fail if:
SEE ALSOsetlocale(3), strcoll(3), wcscmp(3), wcsxfrm(3)STANDARDSThewcscoll () function conforms to
ISO/IEC 9899:1999 (“ISO C99”).
BUGSThe current implementation ofwcscoll () only works in
single-byte LC_CTYPE locales, and falls back to using
wcscmp () in locales with extended character sets.
Visit the GSP FreeBSD Man Page Interface. |