diff options
Diffstat (limited to 'src/stdlib/strtoll.c')
| -rw-r--r-- | src/stdlib/strtoll.c | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/stdlib/strtoll.c b/src/stdlib/strtoll.c index 2f40229c..b0ea0f41 100644 --- a/src/stdlib/strtoll.c +++ b/src/stdlib/strtoll.c @@ -1,13 +1,16 @@ #include <stdlib.h> +#include "limits.h" +#include "errno.h" long long int strtoll(const char * restrict nptr, char ** restrict endptr, int base) { - intmax_t ret = strtoimax(nptr, endptr, base); - if (ret < LLONG_MIN) { - } - if (ret > LLONG_MAX) { - } - return (long long int)ret; + long long int ret = 0; + long long int max = LLONG_MAX; + long long int min = LLONG_MIN; + + #include "_strtoi.h" + + return ret; } /* |
