X-Git-Url: https://git.saurik.com/apple/libc.git/blobdiff_plain/1f2f436a38f7ae2d39a943ad2898d8fed4ed2e58..a28bf75d63c6a64e4c3b417c6052e45f42c6cedd:/stdlib/FreeBSD/atoll.c?ds=sidebyside diff --git a/stdlib/FreeBSD/atoll.c b/stdlib/FreeBSD/atoll.c index c5bc881..c25a4da 100644 --- a/stdlib/FreeBSD/atoll.c +++ b/stdlib/FreeBSD/atoll.c @@ -30,11 +30,22 @@ #include __FBSDID("$FreeBSD: src/lib/libc/stdlib/atoll.c,v 1.5 2007/01/09 00:28:09 imp Exp $"); +#include "xlocale_private.h" + #include long long atoll(str) const char *str; { - return strtoll(str, (char **)NULL, 10); + return strtoll_l(str, (char **)NULL, 10, __current_locale()); +} + +long long +atoll_l(str, loc) + const char *str; + locale_t loc; +{ + /* no need to call NORMALIZE_LOCALE(loc) because strtoll_l will */ + return strtoll_l(str, (char **)NULL, 10, loc); }