diff options
author | Rich Felker <dalias@aerifal.cx> | 2012-04-16 16:55:24 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2012-04-16 16:55:24 -0400 |
commit | 96e9773eb764afa649b099a6e283dba4c69389a9 (patch) | |
tree | 52e2223324cce3db02ff6318ad3f8eb940bd8d5f /src/stdlib/strtoll.c | |
parent | 18efeb320b763e541a7dbf61a7da1cbe13ab2be9 (diff) | |
download | musl-96e9773eb764afa649b099a6e283dba4c69389a9.tar.gz musl-96e9773eb764afa649b099a6e283dba4c69389a9.tar.bz2 musl-96e9773eb764afa649b099a6e283dba4c69389a9.tar.xz musl-96e9773eb764afa649b099a6e283dba4c69389a9.zip |
use the new integer parser (FILE/shgetc based) for strtol, wcstol, etc.
Diffstat (limited to 'src/stdlib/strtoll.c')
-rw-r--r-- | src/stdlib/strtoll.c | 17 |
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; -} |