libwchar2 0.0.10
|
wcstoul() - Convert wide string to a unsigned long integer
The wcstoul()
function converts the initial part of the in wide string to a unsigned longinteger value according to the given base, which must be between
2and
36inclusive, or be the special value
0`.
The wcstoul()
function returns the result of the conversion, unless the value would underflow or overflow.
If an underflow occurs, wcstoul()
returns ULONG_MIN
.
If an overflow occurs, strtol() returns ULONG_MAX
.
In both cases, errno
is set to ERANGE
.
Since 0
can legitimately be returned on both success and failure, the calling program not needed set errno
to 0
before the call.