wide character string comparison using collating information
int wcscoll(const wchar_t ws1, const wchar_t ws2);
wcscoll is part of the X/Open Portability Guide Issue 4 optional
Enhanced Internationalization feature group.
It compares the wide character string pointed to by ws1 to the
wide character string pointed to by ws2, which are both interpreted
as appropriate to the LC_COLLATE category of the current locale.
wcscoll returns 0 and sets errno to ENOSYS.
In the following conditions, wcscoll fails and sets errno to:
The ws1 or ws2 arguments contain wide character codes
outside the domain of the collating sequence.
The function is not supported
Since no return value is reserved to show an error,
if you want to check for errors, you should set errno
to 0, call wcscoll, and then check errno.
If it is non-zero, you can assume that an error has occurred.
Use wcsxfrm and wcscmp for sorting large lists of wide character strings.
© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004