1WCSTOIMAX(3P)              POSIX Programmer's Manual             WCSTOIMAX(3P)
2
3
4

PROLOG

6       This  manual  page is part of the POSIX Programmer's Manual.  The Linux
7       implementation of this interface may differ (consult the  corresponding
8       Linux  manual page for details of Linux behavior), or the interface may
9       not be implemented on Linux.
10

NAME

12       wcstoimax, wcstoumax — convert a wide-character string  to  an  integer
13       type
14

SYNOPSIS

16       #include <stddef.h>
17       #include <inttypes.h>
18
19       intmax_t wcstoimax(const wchar_t *restrict nptr,
20           wchar_t **restrict endptr, int base);
21       uintmax_t wcstoumax(const wchar_t *restrict nptr,
22           wchar_t **restrict endptr, int base);
23

DESCRIPTION

25       The  functionality described on this reference page is aligned with the
26       ISO C standard. Any conflict between the  requirements  described  here
27       and  the  ISO C  standard is unintentional. This volume of POSIX.1‐2017
28       defers to the ISO C standard.
29
30       These  functions  shall  be  equivalent  to  the  wcstol(),  wcstoll(),
31       wcstoul(), and wcstoull() functions, respectively, except that the ini‐
32       tial portion of the wide string shall  be  converted  to  intmax_t  and
33       uintmax_t representation, respectively.
34

RETURN VALUE

36       These functions shall return the converted value, if any.
37
38       If  no  conversion  could  be performed, zero shall be returned. If the
39       correct value is outside  the  range  of  representable  values,  {INT‐
40       MAX_MAX},  {INTMAX_MIN},  or {UINTMAX_MAX} shall be returned (according
41       to the return type and sign of the value, if any), and errno  shall  be
42       set to [ERANGE].
43

ERRORS

45       These functions shall fail if:
46
47       EINVAL The value of base is not supported.
48
49       ERANGE The value to be returned is not representable.
50
51       These functions may fail if:
52
53       EINVAL No conversion could be performed.
54
55       The following sections are informative.
56

EXAMPLES

58       None.
59

APPLICATION USAGE

61       None.
62

RATIONALE

64       None.
65

FUTURE DIRECTIONS

67       None.
68

SEE ALSO

70       wcstol(), wcstoul()
71
72       The Base Definitions volume of POSIX.1‐2017, <inttypes.h>, <stddef.h>
73
75       Portions  of  this text are reprinted and reproduced in electronic form
76       from IEEE Std 1003.1-2017, Standard for Information Technology --  Por‐
77       table  Operating System Interface (POSIX), The Open Group Base Specifi‐
78       cations Issue 7, 2018 Edition, Copyright (C) 2018 by the  Institute  of
79       Electrical  and  Electronics Engineers, Inc and The Open Group.  In the
80       event of any discrepancy between this version and the original IEEE and
81       The  Open Group Standard, the original IEEE and The Open Group Standard
82       is the referee document. The original Standard can be  obtained  online
83       at http://www.opengroup.org/unix/online.html .
84
85       Any  typographical  or  formatting  errors that appear in this page are
86       most likely to have been introduced during the conversion of the source
87       files  to  man page format. To report such errors, see https://www.ker
88       nel.org/doc/man-pages/reporting_bugs.html .
89
90
91
92IEEE/The Open Group                  2017                        WCSTOIMAX(3P)
Impressum