Standard C++ Library Reference ISO/IEC (VERSION3)

as type long, wcstol stores the value of ERANGE in errno and returns either LONG_MAX if x is positive
or LONG_MIN if x is negative.
wcstoul
unsigned long wcstoul(const wchar_t *nptr,
wchar_t **endptr, int base);
The function converts the initial wide characters of the wide string s to an equivalent value x of type
unsigned long. If endptr is not a null pointer, it stores a pointer to the unconverted remainder of the wide
string in *endptr. The function then returns x.
wcstoul converts strings exactly as does wcstol, but checks only if the equivalent value is too large to
represent as type unsigned long. In this case, wcstoul stores the value of ERANGE in errno and returns
ULONG_MAX.
wcsxfrm
size_t wcsxfrm(wchar_t *s1, const wchar_t *s2,
size_t n);
The function stores a wide string in the array whose first element has the address s1. It stores no more than
n wide characters, including the terminating null wide character, and returns the number of wide characters
needed to represent the entire wide string, not including the terminating null wide character. If the value
returned is n or greater, the values stored in the array are indeterminate. (If n is zero, s1 can be a null
pointer.)
wcsxfrm generates the wide string it stores from the wide string s2 by using a transformation rule that
depends on the current locale. For example, if x is a transformation of s1 and y is a transformation of s2,
then wcscmp(x, y) returns the same value as wcscoll(s1, s2).
wctob
int wctob(wint_t c);
The function determines whether c can be represented as a one-byte multibyte character x, beginning in the
initial shift state. (It effectively calls wcrtomb to make the conversion.) If so, the function returns x.
Otherwise, it returns WEOF.
WEOF
#define WEOF <wint_t constant expression>
The macro yields the return value, of type wint_t, used to signal the end of a wide stream or to report an
error condition.