Code & Deploy
Code
Models
Repos
Sign in
@matheusbsbs
/
matheus-bagliano
matheus-bagliano
/
compat
/
strtoumax.c
Code
Commits
Pulls
CI/CD
81,348
maint
bisect
jch
maint
master
next
seen
test
todo
c
10 lines
217 Bytes
Copy permalink
Copy
Raw
1
#include
"../git-compat-util.h"
2
3
uintmax_t
gitstrtoumax
(
const
char
*
nptr
,
char
**
endptr
,
int
base
)
4
{
5
#if defined(NO_STRTOULL)
6
return
strtoul
(
nptr
,
endptr
,
base
);
7
#else
8
return
strtoull
(
nptr
,
endptr
,
base
);
9
#endif
10
}