diff options
Diffstat (limited to 'src/stdlib/strtoull.c')
| -rw-r--r-- | src/stdlib/strtoull.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/stdlib/strtoull.c b/src/stdlib/strtoull.c new file mode 100644 index 00000000..c95bac77 --- /dev/null +++ b/src/stdlib/strtoull.c @@ -0,0 +1,13 @@ +#include <stdlib.h> + +unsigned long long int strtoull(const char * restrict nptr, char ** restrict endptr, int base) +{ + uintmax_t ret = strtoumax(nptr, endptr, base); + if (ret > ULLONG_MAX) { + } + return (unsigned long long int)ret; +} + +/* +STDC(199901) +*/ |
