1STRTOIMAX(3) Linux Programmer's Manual STRTOIMAX(3)
2
3
4
6 strtoimax, strtoumax - convert string to integer
7
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
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
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
24 For an explanation of the terms used in this section, see
25 attributes(7).
26
27 ┌─────────────────────────┬───────────────┬────────────────┐
28 │Interface │ Attribute │ Value │
29 ├─────────────────────────┼───────────────┼────────────────┤
30 │strtoimax(), strtoumax() │ Thread safety │ MT-Safe locale │
31 └─────────────────────────┴───────────────┴────────────────┘
33 POSIX.1-2001, POSIX.1-2008, C99.
34
36 imaxabs(3), imaxdiv(3), strtol(3), strtoul(3), wcstoimax(3)
37
39 This page is part of release 5.07 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)