Welcome to mirror list, hosted at ThFree Co, Russian Federation.

strtoimax.c « compat - git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ac09ed89e710ee7a489c29857b3cbe0b9d4d0404 (plain)
1
2
3
4
5
6
7
8
9
10
#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
}