Commit c200c851 authored by Michał Kazior's avatar Michał Kazior
Browse files

wchar: implement wcstol_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 86d4db21
......@@ -114,3 +114,14 @@ unsigned long int wcstoul_l(const wchar_t *nptr, wchar_t **endptr,
{
return wcstoul(nptr, endptr, base);
}
/**
* Convert a wide-character string to a long int.
*
* Some day, when musl supports LC_NUMERIC, we can probably remove this.
*/
long int wcstol_l(const wchar_t *nptr, wchar_t **endptr, int base,
locale_t loc)
{
return wcstol(nptr, endptr, base);
}
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