mirror of
https://github.com/git/git
synced 2024-08-25 02:35:46 +00:00
11 lines
214 B
C
11 lines
214 B
C
![]() |
#include "../git-compat-util.h"
|
||
|
|
||
|
intmax_t gitstrtoimax (const char *nptr, char **endptr, int base)
|
||
|
{
|
||
|
#if defined(NO_STRTOULL)
|
||
|
return strtol(nptr, endptr, base);
|
||
|
#else
|
||
|
return strtoll(nptr, endptr, base);
|
||
|
#endif
|
||
|
}
|