Commit a57d67b9 authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

msvcrt: Add wcrtomb_s implementation.

parent 41bed702
......@@ -102,7 +102,7 @@
@ cdecl -ret64 strtoull(str ptr long) ucrtbase.strtoull
@ cdecl -ret64 strtoumax(str ptr long) ucrtbase.strtoumax
@ cdecl wcrtomb(ptr long ptr) ucrtbase.wcrtomb
@ stub wcrtomb_s
@ cdecl wcrtomb_s(ptr ptr long long ptr) ucrtbase.wcrtomb_s
@ cdecl wcsrtombs(ptr ptr long ptr) ucrtbase.wcsrtombs
@ cdecl wcsrtombs_s(ptr ptr long ptr long ptr) ucrtbase.wcsrtombs_s
@ cdecl wcstod(wstr ptr) ucrtbase.wcstod
......
......@@ -1853,7 +1853,7 @@
@ cdecl vwprintf(wstr ptr) MSVCRT_vwprintf
@ cdecl vwprintf_s(wstr ptr) MSVCRT_vwprintf_s
@ cdecl wcrtomb(ptr long ptr) MSVCRT_wcrtomb
@ stub wcrtomb_s
@ cdecl wcrtomb_s(ptr ptr long long ptr) MSVCRT_wcrtomb_s
@ cdecl wcscat(wstr wstr) ntdll.wcscat
@ cdecl wcscat_s(wstr long wstr) MSVCRT_wcscat_s
@ cdecl wcschr(wstr long) MSVCRT_wcschr
......
......@@ -2211,7 +2211,7 @@
@ cdecl vwprintf(wstr ptr) MSVCRT_vwprintf
@ cdecl vwprintf_s(wstr ptr) MSVCRT_vwprintf_s
@ cdecl wcrtomb(ptr long ptr) MSVCRT_wcrtomb
@ stub wcrtomb_s
@ cdecl wcrtomb_s(ptr ptr long long ptr) MSVCRT_wcrtomb_s
@ cdecl wcscat(wstr wstr) ntdll.wcscat
@ cdecl wcscat_s(wstr long wstr) MSVCRT_wcscat_s
@ cdecl wcschr(wstr long) MSVCRT_wcschr
......
......@@ -2446,7 +2446,7 @@
@ stub vwscanf
@ stub vwscanf_s
@ cdecl wcrtomb(ptr long ptr) MSVCRT_wcrtomb
@ stub wcrtomb_s
@ cdecl wcrtomb_s(ptr ptr long long ptr) MSVCRT_wcrtomb_s
@ cdecl wcscat(wstr wstr) ntdll.wcscat
@ cdecl wcscat_s(wstr long wstr) MSVCRT_wcscat_s
@ cdecl wcschr(wstr long) MSVCRT_wcschr
......
......@@ -2108,7 +2108,7 @@
@ stub vwscanf
@ stub vwscanf_s
@ cdecl wcrtomb(ptr long ptr) msvcr120.wcrtomb
@ stub wcrtomb_s
@ cdecl wcrtomb_s(ptr ptr long long ptr) msvcr120.wcrtomb_s
@ cdecl wcscat(wstr wstr) msvcr120.wcscat
@ cdecl wcscat_s(wstr long wstr) msvcr120.wcscat_s
@ cdecl wcschr(wstr long) msvcr120.wcschr
......
......@@ -1533,7 +1533,7 @@
@ cdecl vwprintf(wstr ptr) MSVCRT_vwprintf
@ cdecl vwprintf_s(wstr ptr) MSVCRT_vwprintf_s
@ cdecl wcrtomb(ptr long ptr) MSVCRT_wcrtomb
@ stub wcrtomb_s
@ cdecl wcrtomb_s(ptr ptr long long ptr) MSVCRT_wcrtomb_s
@ cdecl wcscat(wstr wstr) ntdll.wcscat
@ cdecl wcscat_s(wstr long wstr) MSVCRT_wcscat_s
@ cdecl wcschr(wstr long) MSVCRT_wcschr
......
......@@ -1506,7 +1506,7 @@
@ cdecl vwprintf(wstr ptr) MSVCRT_vwprintf
@ cdecl vwprintf_s(wstr ptr) MSVCRT_vwprintf_s
@ cdecl wcrtomb(ptr long ptr) MSVCRT_wcrtomb
@ stub wcrtomb_s
@ cdecl wcrtomb_s(ptr ptr long long ptr) MSVCRT_wcrtomb_s
@ cdecl wcscat(wstr wstr) ntdll.wcscat
@ cdecl wcscat_s(wstr long wstr) MSVCRT_wcscat_s
@ cdecl wcschr(wstr long) MSVCRT_wcschr
......
......@@ -1480,7 +1480,7 @@
@ cdecl vwprintf(wstr ptr) MSVCRT_vwprintf
@ cdecl vwprintf_s(wstr ptr) MSVCRT_vwprintf_s
@ cdecl wcrtomb(ptr long ptr) MSVCRT_wcrtomb
# stub wcrtomb_s(ptr ptr long long ptr)
@ cdecl wcrtomb_s(ptr ptr long long ptr) MSVCRT_wcrtomb_s
@ cdecl wcscat(wstr wstr) ntdll.wcscat
@ cdecl wcscat_s(wstr long wstr) MSVCRT_wcscat_s
@ cdecl wcschr(wstr long) MSVCRT_wcschr
......
......@@ -1822,6 +1822,20 @@ INT CDECL MSVCRT_wctob( MSVCRT_wint_t wchar )
}
/*********************************************************************
* wcrtomb_s (MSVCRT.@)
*/
INT CDECL MSVCRT_wcrtomb_s(MSVCRT_size_t *len, char *mbchar,
MSVCRT_size_t size, MSVCRT_wchar_t wch, MSVCRT_mbstate_t *s)
{
int ilen, ret;
if (s) *s = 0;
ret = MSVCRT_wctomb_s(&ilen, mbchar, size, wch);
if (len) *len = ilen;
return ret;
}
/*********************************************************************
* wcrtomb (MSVCRT.@)
*/
MSVCRT_size_t CDECL MSVCRT_wcrtomb( char *dst, MSVCRT_wchar_t ch, MSVCRT_mbstate_t *s)
......
......@@ -2553,7 +2553,7 @@
@ cdecl ungetc(long ptr) MSVCRT_ungetc
@ cdecl ungetwc(long ptr) MSVCRT_ungetwc
@ cdecl wcrtomb(ptr long ptr) MSVCRT_wcrtomb
@ stub wcrtomb_s
@ cdecl wcrtomb_s(ptr ptr long long ptr) MSVCRT_wcrtomb_s
@ cdecl wcscat(wstr wstr) ntdll.wcscat
@ cdecl wcscat_s(wstr long wstr) MSVCRT_wcscat_s
@ cdecl wcschr(wstr long) MSVCRT_wcschr
......
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