mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 04:30:57 +00:00
Implemented the wcstoul function.
This commit is contained in:
parent
e15badb478
commit
bfa70fe642
|
@ -950,6 +950,7 @@ debug_channels (aspi atom cdrom console ddraw debug delayhlp dll dosfs dosmem
|
|||
@ cdecl -noimport strspn(str str) strspn
|
||||
@ cdecl -noimport strstr(str str) strstr
|
||||
@ cdecl -noimport strtol(str ptr long) strtol
|
||||
@ cdecl -noimport strtoul(str ptr long) strtoul
|
||||
@ varargs swprintf(wstr wstr) NTDLL_swprintf
|
||||
@ cdecl -noimport tan(double) tan
|
||||
@ cdecl tolower(long) tolower
|
||||
|
@ -973,7 +974,7 @@ debug_channels (aspi atom cdrom console ddraw debug delayhlp dll dosfs dosmem
|
|||
@ cdecl wcstok(wstr wstr) NTDLL_wcstok
|
||||
@ cdecl wcstol(wstr ptr long) NTDLL_wcstol
|
||||
@ cdecl wcstombs(ptr ptr long) NTDLL_wcstombs
|
||||
@ stub wcstoul
|
||||
@ cdecl wcstoul(wstr ptr long) NTDLL_wcstoul
|
||||
@ stub NtAddAtom
|
||||
@ stub NtDeleteAtom
|
||||
@ stub NtFindAtom
|
||||
|
|
|
@ -288,6 +288,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.@)
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue