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
24

DESCRIPTION

26       These  functions  shall  be  equivalent  to  the  wcstol(),  wcstoll(),
27       wcstoul(), and wcstoull() functions, respectively, except that the ini‐
28       tial  portion  of  the  wide  string shall be converted to intmax_t and
29       uintmax_t representation, respectively.
30

RETURN VALUE

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

ERRORS

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

EXAMPLES

56       None.
57

APPLICATION USAGE

59       None.
60

RATIONALE

62       None.
63

FUTURE DIRECTIONS

65       None.
66

SEE ALSO

68       wcstol(),    wcstoul(),    the    Base    Definitions     volume     of
69       IEEE Std 1003.1-2001, <inttypes.h>, <stddef.h>
70
72       Portions  of  this text are reprinted and reproduced in electronic form
73       from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
74       --  Portable  Operating  System  Interface (POSIX), The Open Group Base
75       Specifications Issue 6, Copyright (C) 2001-2003  by  the  Institute  of
76       Electrical  and  Electronics  Engineers, Inc and The Open Group. In the
77       event of any discrepancy between this version and the original IEEE and
78       The  Open Group Standard, the original IEEE and The Open Group Standard
79       is the referee document. The original Standard can be  obtained  online
80       at http://www.opengroup.org/unix/online.html .
81
82
83
84IEEE/The Open Group                  2003                        WCSTOIMAX(3P)
Impressum