X-Git-Url: https://git.saurik.com/apple/libc.git/blobdiff_plain/1f2f436a38f7ae2d39a943ad2898d8fed4ed2e58..aa54d2fad3d9038b43475aa93c76795c5141a993:/stdlib/FreeBSD/strtoq.c diff --git a/stdlib/FreeBSD/strtoq.c b/stdlib/FreeBSD/strtoq.c index 0d101d5..9dd03e2 100644 --- a/stdlib/FreeBSD/strtoq.c +++ b/stdlib/FreeBSD/strtoq.c @@ -33,6 +33,8 @@ static char sccsid[] = "@(#)strtoq.c 8.1 (Berkeley) 6/4/93"; #include __FBSDID("$FreeBSD: src/lib/libc/stdlib/strtoq.c,v 1.12 2007/01/09 00:28:10 imp Exp $"); +#include "xlocale_private.h" + #include #include @@ -44,5 +46,13 @@ quad_t strtoq(const char *nptr, char **endptr, int base) { - return strtoll(nptr, endptr, base); + return strtoll_l(nptr, endptr, base, __current_locale()); +} + +quad_t +strtoq_l(const char *nptr, char **endptr, int base, locale_t loc) +{ + + /* no need to call NORMALIZE_LOCALE(loc) because strtoll_l will */ + return strtoll_l(nptr, endptr, base, loc); }