msvcrt: Implement wcsnlen.
This commit is contained in:
parent
259b5fdfa6
commit
23fdfbc392
|
@ -1644,7 +1644,7 @@
|
|||
@ cdecl wcsncmp(wstr wstr long) msvcrt.wcsncmp
|
||||
@ cdecl wcsncpy(ptr wstr long) msvcrt.wcsncpy
|
||||
@ cdecl wcsncpy_s(ptr long wstr long) msvcrt.wcsncpy_s
|
||||
@ stub wcsnlen
|
||||
@ cdecl wcsnlen(wstr long) msvcrt.wcsnlen
|
||||
@ cdecl wcspbrk(wstr wstr) msvcrt.wcspbrk
|
||||
@ cdecl wcsrchr(wstr long) msvcrt.wcsrchr
|
||||
@ stub wcsrtombs
|
||||
|
|
|
@ -1498,7 +1498,7 @@
|
|||
@ cdecl wcsncmp(wstr wstr long) msvcrt.wcsncmp
|
||||
@ cdecl wcsncpy(ptr wstr long) msvcrt.wcsncpy
|
||||
@ cdecl wcsncpy_s(ptr long wstr long) msvcrt.wcsncpy_s
|
||||
@ stub wcsnlen
|
||||
@ cdecl wcsnlen(wstr long) msvcrt.wcsnlen
|
||||
@ cdecl wcspbrk(wstr wstr) msvcrt.wcspbrk
|
||||
@ cdecl wcsrchr(wstr long) msvcrt.wcsrchr
|
||||
@ stub wcsrtombs
|
||||
|
|
|
@ -1482,7 +1482,7 @@
|
|||
@ cdecl wcsncmp(wstr wstr long) msvcrt.wcsncmp
|
||||
@ cdecl wcsncpy(ptr wstr long) msvcrt.wcsncpy
|
||||
@ cdecl wcsncpy_s(ptr long wstr long) msvcrt.wcsncpy_s
|
||||
@ stub wcsnlen
|
||||
@ cdecl wcsnlen(wstr long) msvcrt.wcsnlen
|
||||
@ cdecl wcspbrk(wstr wstr) msvcrt.wcspbrk
|
||||
@ cdecl wcsrchr(wstr long) msvcrt.wcsrchr
|
||||
@ stub wcsrtombs
|
||||
|
|
|
@ -1444,7 +1444,7 @@
|
|||
@ cdecl wcsncmp(wstr wstr long) ntdll.wcsncmp
|
||||
@ cdecl wcsncpy(ptr wstr long) ntdll.wcsncpy
|
||||
@ cdecl wcsncpy_s(ptr long wstr long) MSVCRT_wcsncpy_s
|
||||
# stub wcsnlen
|
||||
@ cdecl wcsnlen(wstr long) MSVCRT_wcsnlen
|
||||
@ cdecl wcspbrk(wstr wstr) MSVCRT_wcspbrk
|
||||
@ cdecl wcsrchr(wstr long) ntdll.wcsrchr
|
||||
# stub wcsrtombs
|
||||
|
|
|
@ -1737,3 +1737,15 @@ unsigned __int64 CDECL MSVCRT__wcstoui64(const MSVCRT_wchar_t *nptr,
|
|||
{
|
||||
return MSVCRT__wcstoui64_l(nptr, endptr, base, NULL);
|
||||
}
|
||||
|
||||
/******************************************************************
|
||||
* wcsnlen (MSVCRT.@)
|
||||
*/
|
||||
MSVCRT_size_t CDECL MSVCRT_wcsnlen(const MSVCRT_wchar_t *s, MSVCRT_size_t maxlen)
|
||||
{
|
||||
MSVCRT_size_t i;
|
||||
|
||||
for (i = 0; i < maxlen; i++)
|
||||
if (!s[i]) break;
|
||||
return i;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue