msvcrt: Added _wcstoul_l implementation.

This commit is contained in:
Piotr Caban 2013-03-27 16:13:21 +01:00 committed by Alexandre Julliard
parent 9e32259457
commit 8f9b0abf72
2 changed files with 25 additions and 2 deletions

View File

@ -1124,7 +1124,7 @@
@ cdecl _wcstombs_s_l(ptr ptr long wstr long ptr) MSVCRT__wcstombs_s_l
@ cdecl -ret64 _wcstoui64(wstr ptr long) MSVCRT__wcstoui64
@ cdecl -ret64 _wcstoui64_l(wstr ptr long ptr) MSVCRT__wcstoui64_l
# stub _wcstoul_l(wstr ptr long ptr)
@ cdecl _wcstoul_l(wstr ptr long ptr) MSVCRT__wcstoul_l
@ cdecl _wcsupr(wstr) ntdll._wcsupr
# stub _wcsupr_l(wstr ptr)
@ cdecl _wcsupr_s(wstr long) MSVCRT__wcsupr_s
@ -1501,7 +1501,7 @@
@ cdecl wcstol(wstr ptr long) ntdll.wcstol
@ cdecl wcstombs(ptr ptr long) MSVCRT_wcstombs
@ cdecl wcstombs_s(ptr ptr long wstr long) MSVCRT_wcstombs_s
@ cdecl wcstoul(wstr ptr long) ntdll.wcstoul
@ cdecl wcstoul(wstr ptr long) MSVCRT_wcstoul
@ stub wcsxfrm(ptr wstr long)
@ cdecl wctob(long) MSVCRT_wctob
@ cdecl wctomb(ptr long) MSVCRT_wctomb

View File

@ -1586,6 +1586,29 @@ unsigned __int64 CDECL MSVCRT__wcstoui64(const MSVCRT_wchar_t *nptr,
return MSVCRT__wcstoui64_l(nptr, endptr, base, NULL);
}
/*********************************************************************
* _wcstoul_l (MSVCRT.@)
*/
MSVCRT_ulong __cdecl MSVCRT__wcstoul_l(const MSVCRT_wchar_t *s,
MSVCRT_wchar_t **end, int base, MSVCRT__locale_t locale)
{
__int64 ret = MSVCRT__wcstoui64_l(s, end, base, locale);
if(ret > MSVCRT_ULONG_MAX) {
ret = MSVCRT_ULONG_MAX;
*MSVCRT__errno() = MSVCRT_ERANGE;
}
return ret;
}
/*********************************************************************
* wcstoul (MSVCRT.@)
*/
MSVCRT_ulong __cdecl MSVCRT_wcstoul(const MSVCRT_wchar_t *s, MSVCRT_wchar_t **end, int base)
{
return MSVCRT__wcstoul_l(s, end, base, NULL);
}
/******************************************************************
* wcsnlen (MSVCRT.@)
*/