Compares wide character strings.
Standard C Library (libc.a)
#include <string.h>
int wcscoll ( WcString1, WcString2)
const wchar_t *WcString1, *WcString2;
The wcscoll subroutine compares the two wide-character strings pointed to by the WcString1 and WcString2 parameters based on the collation values specified by the LC_COLLATE environment variable of the current locale.
The wcscoll subroutine may be unsuccessful if the wide character strings specified by the WcString1 or WcString2 parameter contains characters outside the domain of the current collating sequence.
WcString1 | Points to a wide-character string. |
WcString2 | Points to a wide-character string. |
The wcscoll subroutine returns the following values:
The wcscoll subroutine indicates error conditions by setting the errno global variable. However, there is no return value to indicate an error. To check for errors, the errno global variable should be set to 0, then checked upon return from the wcscoll subroutine. If the errno global variable is nonzero, an error occurred.
EINVAL | The WcString1 or WcString2 arguments contain wide-character codes outside the domain of the collating sequence. |
The wcscmp (wcscat, wcschr, wcscmp, wcscpy, or wcscspn Subroutine) subroutine.
Subroutines Overview in AIX 5L Version 5.2 General Programming Concepts: Writing and Debugging Programs.
National Language Support Overview and Understanding Wide Character String Collation Subroutines in AIX 5L Version 5.2 National Language Support Guide and Reference.