1wcstoimax(3C)            Standard C Library Functions            wcstoimax(3C)
2
3
4

NAME

6       wcstoimax, wcstoumax - convert wide-character string to integer type
7

SYNOPSIS

9       #include <stddef.h>
10       #include <inttypes.h>
11
12       intmax_t wcstoimax(const wchar_t *restrict nptr,
13            wchar_t **restrict endptr, int base);
14
15
16       uintmax_t wcstoumax(const wchar_t *restrict nptr,
17            wchar_t **restrict endptr, int base);
18
19

DESCRIPTION

21       These   functions   are  equivalent  to  the  wcstol(3C),  wcstoll(3C),
22       wcstoul(3C), and wcstoull(3C) functions, respectively, except that  the
23       initial  portion  of the wide string is converted to intmax_t and uint‐
24       max_t representation, respectively.
25

RETURN VALUES

27       These functions return the converted value, if any.  If  no  conversion
28       could  be performed, 0 is returned. If the correct value is outside the
29       range of representable values, {INTMAX_MAX},  {INTMAX_MIN},  or  {UINT‐
30       MAX_MAX}  is  returned  (according  to  the return type and sign of the
31       value), and errno is set to ERANGE.
32

ERRORS

34       These functions will fail if:
35
36       EINVAL    The value of base is not supported.
37
38
39       ERANGE    The value to be returned is not representable.
40
41
42
43       These functions may fail if:
44
45       EINVAL    No conversion could be performed.
46
47

ATTRIBUTES

49       See attributes(5) for descriptions of the following attributes:
50
51
52
53
54       ┌─────────────────────────────┬─────────────────────────────┐
55       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
56       ├─────────────────────────────┼─────────────────────────────┤
57       │Interface Stability          │Standard                     │
58       ├─────────────────────────────┼─────────────────────────────┤
59       │MT-Level                     │MT-Safe                      │
60       └─────────────────────────────┴─────────────────────────────┘
61

SEE ALSO

63       wcstol(3C), wcstoul(3C), attributes(5), standards(5)
64
65
66
67SunOS 5.11                        1 Dec 2003                     wcstoimax(3C)
Impressum