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() and strtoul(), except that they
16 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 C99, POSIX.1-2001.
25
27 imaxabs(3), imaxdiv(3), strtol(3), strtoul(3), wcstoimax(3)
28
29
30
31 2003-11-28 STRTOIMAX(3)