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
11

NAME

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

SYNOPSIS

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

DESCRIPTION

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

RETURN VALUE

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

ERRORS

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

EXAMPLES

59       None.
60

APPLICATION USAGE

62       None.
63

RATIONALE

65       None.
66

FUTURE DIRECTIONS

68       None.
69

SEE ALSO

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