Code & Deploy
Code
Models
Repos
Sign in
@leroysheep
/
LeeRoySheep
LeeRoySheep
/
compat
/
strtoimax.c
Code
Commits
Pulls
CI/CD
81,841
master
bisect
jch
maint
master
next
seen
test
todo
c
10 lines
214 Bytes
Copy permalink
Copy
Raw
1
#include
"../git-compat-util.h"
2
3
intmax_t
gitstrtoimax
(
const
char
*
nptr
,
char
**
endptr
,
int
base
)
4
{
5
#if defined(NO_STRTOULL)
6
return
strtol
(
nptr
,
endptr
,
base
);
7
#else
8
return
strtoll
(
nptr
,
endptr
,
base
);
9
#endif
10
}