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