strtoumax.c 217 B

1234567891011
  1. #include "../git-compat-util.h"
  2. uintmax_t gitstrtoumax (const char *nptr, char **endptr, int base)
  3. {
  4. #if defined(NO_STRTOULL)
  5. return strtoul(nptr, endptr, base);
  6. #else
  7. return strtoull(nptr, endptr, base);
  8. #endif
  9. }