Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

strtoumax - convert string to integer (uintmax_t)

&pagelevel(4)&pagelevel

Syntax

#include <inttypes.h>

uintmax_t strtoumax(const char *s, char ** zg, int base);

Description

strtoumax() converts the EBCDIC string to which s points into an integer of type uintmax_t.

uintmax_t is a type predefined in the header stdint.h:

typedef unsigned long long uintmax_t;

Further description see strtoull().

Return val.

Integer value of type uintmax_t 



for strings that have a structure as described for strtoull() and which represent a numeric value.


0   

for strings that do not conform to the syntax described for strtoull(). The conversion is not executed. If the value of base is not supported, errno is set to EINVAL.

 

UINTMAX_MAX  



if the result overflows, depending on the sign. errno is set to ERANGE.

See also

strtoimax(), strtol(), strtoll(), strtoul()strtoull().