Commit 93b7fedb authored by Michał Kazior's avatar Michał Kazior
Browse files

wchar: implement wcstod_l



This is similar to strtoll_l() in a way it ignores
the locale_t argument and uses the global locale
settings.
Signed-off-by: Michał Kazior's avatarMichal Kazior <kazikcz@gmail.com>
parent c200c851
......@@ -125,3 +125,13 @@ long int wcstol_l(const wchar_t *nptr, wchar_t **endptr, int base,
{
return wcstol(nptr, endptr, base);
}
/**
* Convert a wide-character string to a double.
*
* Some day, when musl supports LC_NUMERIC, we can probably remove this.
*/
double wcstod_l(const wchar_t *nptr, wchar_t **endptr, locale_t loc)
{
return wcstod(nptr, endptr);
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment