summaryrefslogtreecommitdiff
path: root/src/stdlib/strtoll.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stdlib/strtoll.c')
-rw-r--r--src/stdlib/strtoll.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/stdlib/strtoll.c b/src/stdlib/strtoll.c
deleted file mode 100644
index 9ab66fd9..00000000
--- a/src/stdlib/strtoll.c
+++ /dev/null
@@ -1,17 +0,0 @@
-#include <stdlib.h>
-#include <inttypes.h>
-#include <errno.h>
-#include <limits.h>
-
-long long strtoll(const char *s, char **p, int base)
-{
- intmax_t x = strtoimax(s, p, base);
- if (x > LLONG_MAX) {
- errno = ERANGE;
- return LLONG_MAX;
- } else if (x < LLONG_MIN) {
- errno = ERANGE;
- return LLONG_MIN;
- }
- return x;
-}