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/wcstoull.c | |
parent | 18efeb320b763e541a7dbf61a7da1cbe13ab2be9 (diff) | |
download | musl-96e9773eb764afa649b099a6e283dba4c69389a9.tar.gz musl-96e9773eb764afa649b099a6e283dba4c69389a9.tar.xz musl-96e9773eb764afa649b099a6e283dba4c69389a9.zip |
use the new integer parser (FILE/shgetc based) for strtol, wcstol, etc.
Diffstat (limited to 'src/stdlib/wcstoull.c')
-rw-r--r-- | src/stdlib/wcstoull.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/stdlib/wcstoull.c b/src/stdlib/wcstoull.c deleted file mode 100644 index 48c557db..00000000 --- a/src/stdlib/wcstoull.c +++ /dev/null @@ -1,18 +0,0 @@ -#include <wchar.h> -#include <stdlib.h> -#include <inttypes.h> -#include <errno.h> -#include <limits.h> - -unsigned long long wcstoull(const wchar_t *s, wchar_t **p, int base) -{ - intmax_t x; - if (sizeof(intmax_t) == sizeof(long long)) - return wcstoumax(s, p, base); - x = wcstoimax(s, p, base); - if (-x > ULLONG_MAX || x > ULLONG_MAX) { - errno = ERANGE; - return ULLONG_MAX; - } - return x; -} |