Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

wcstoimax - convert wide character string to integer of type intmax_t

&pagelevel(4)&pagelevel

Syntax

#include <inttypes.h>

intmax_t wcstoimax(const wchar_t * nptr, wchar_t ** endptr, int base);

Description

wcstoimax() converts the initial portion of the wide character string pointed to by nptr to intmax_t representation.

intmax_t is a type predefined in stdint.h:
typedef long long intmax_t;

For more descrition see wcstoll().

Return val.

converted value



if successful.


0

if no conversion could be performed. errno is set to indicate an error .


INTMAX_MAX, INTMAX_MIN



depending on the sign of the value, if the correct value is outside the range of representable values. errno is set to indicate an error .

Errors

wcstoimax() will fail if: 


EINVAL

The value of base is not supported.


ERANGE

The correct value is outside the range of representable values.

Notes

See wcstoll().

See also

strtoimax(), strtol()strtoll(), strtoul(), strtoull()strtoumax(), wcstol()wcstoll(), wcstoul(), wcstoull(), wcstoumax().