1STRTOIMAX(3)               Linux Programmer's Manual              STRTOIMAX(3)
2
3
4

NAME

6       strtoimax, strtoumax - convert string to integer
7

SYNOPSIS

9       #include <inttypes.h>
10
11       intmax_t strtoimax(const char *nptr, char **endptr, int base);
12       uintmax_t strtoumax(const char *nptr, char **endptr, int base);
13

DESCRIPTION

15       These  functions  are  just  like strtol(3) and strtoul(3), except that
16       they return a value of type intmax_t and uintmax_t, respectively.
17

RETURN VALUE

19       On success, the converted value is returned.  If nothing was  found  to
20       convert, zero is returned.  On overflow or underflow INTMAX_MAX or INT‐
21       MAX_MIN or UINTMAX_MAX is returned, and errno is set to ERANGE.
22

ATTRIBUTES

24       For  an  explanation  of  the  terms  used   in   this   section,   see
25       attributes(7).
26
27       ┌─────────────────────────┬───────────────┬────────────────┐
28Interface                Attribute     Value          
29       ├─────────────────────────┼───────────────┼────────────────┤
30strtoimax(), strtoumax() │ Thread safety │ MT-Safe locale │
31       └─────────────────────────┴───────────────┴────────────────┘

CONFORMING TO

33       POSIX.1-2001, POSIX.1-2008, C99.
34

SEE ALSO

36       imaxabs(3), imaxdiv(3), strtol(3), strtoul(3), wcstoimax(3)
37

COLOPHON

39       This  page  is  part of release 5.02 of the Linux man-pages project.  A
40       description of the project, information about reporting bugs,  and  the
41       latest     version     of     this    page,    can    be    found    at
42       https://www.kernel.org/doc/man-pages/.
43
44
45
46                                  2015-08-08                      STRTOIMAX(3)
Impressum