Defined in header <cinttypes> std::intmax_t strtoimax( const char* nptr, char** endptr, int base ); (since C++11) std::uintmax_t strtoumax( const char* nptr, char** endptr, int base ); (since C++11)
Interprets an integer value in a byte string pointed to by nptr.
Discards any whitespace characters (as identified by calling isspace()) until the first non-whitespace character is found, then takes as many characters as possible to form a valid base-n (where n=base) integ