Commit bfa70fe6 authored by David Elliott's avatar David Elliott Committed by Alexandre Julliard

Implemented the wcstoul function.

parent e15badb4
...@@ -950,6 +950,7 @@ debug_channels (aspi atom cdrom console ddraw debug delayhlp dll dosfs dosmem ...@@ -950,6 +950,7 @@ debug_channels (aspi atom cdrom console ddraw debug delayhlp dll dosfs dosmem
@ cdecl -noimport strspn(str str) strspn @ cdecl -noimport strspn(str str) strspn
@ cdecl -noimport strstr(str str) strstr @ cdecl -noimport strstr(str str) strstr
@ cdecl -noimport strtol(str ptr long) strtol @ cdecl -noimport strtol(str ptr long) strtol
@ cdecl -noimport strtoul(str ptr long) strtoul
@ varargs swprintf(wstr wstr) NTDLL_swprintf @ varargs swprintf(wstr wstr) NTDLL_swprintf
@ cdecl -noimport tan(double) tan @ cdecl -noimport tan(double) tan
@ cdecl tolower(long) tolower @ cdecl tolower(long) tolower
...@@ -973,7 +974,7 @@ debug_channels (aspi atom cdrom console ddraw debug delayhlp dll dosfs dosmem ...@@ -973,7 +974,7 @@ debug_channels (aspi atom cdrom console ddraw debug delayhlp dll dosfs dosmem
@ cdecl wcstok(wstr wstr) NTDLL_wcstok @ cdecl wcstok(wstr wstr) NTDLL_wcstok
@ cdecl wcstol(wstr ptr long) NTDLL_wcstol @ cdecl wcstol(wstr ptr long) NTDLL_wcstol
@ cdecl wcstombs(ptr ptr long) NTDLL_wcstombs @ cdecl wcstombs(ptr ptr long) NTDLL_wcstombs
@ stub wcstoul @ cdecl wcstoul(wstr ptr long) NTDLL_wcstoul
@ stub NtAddAtom @ stub NtAddAtom
@ stub NtDeleteAtom @ stub NtDeleteAtom
@ stub NtFindAtom @ stub NtFindAtom
......
...@@ -289,6 +289,21 @@ INT __cdecl NTDLL_wcstol(LPCWSTR s,LPWSTR *end,INT base) ...@@ -289,6 +289,21 @@ INT __cdecl NTDLL_wcstol(LPCWSTR s,LPWSTR *end,INT base)
/********************************************************************* /*********************************************************************
* wcstoul (NTDLL.@)
* Like strtoul, but for wide character strings.
*/
INT __cdecl NTDLL_wcstoul(LPCWSTR s,LPWSTR *end,INT base)
{
LPSTR sA = HEAP_strdupWtoA(GetProcessHeap(),0,s),endA;
INT ret = strtoul(sA,&endA,base);
HeapFree(GetProcessHeap(),0,sA);
if (end) *end = ((LPWSTR)s)+(endA-sA); /* pointer magic checked. */
return ret;
}
/*********************************************************************
* iswctype (NTDLL.@) * iswctype (NTDLL.@)
*/ */
INT __cdecl NTDLL_iswctype( WCHAR wc, WCHAR wct ) INT __cdecl NTDLL_iswctype( WCHAR wc, WCHAR wct )
......
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