mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 08:25:03 +00:00
[CRT] Add wcrtomb (from wine)
This commit is contained in:
parent
0f9bf6abb4
commit
76d33ee7f2
4 changed files with 35 additions and 1 deletions
|
@ -1518,7 +1518,7 @@
|
|||
@ stub -version=0x600+ vswprintf_s
|
||||
@ cdecl vwprintf(wstr ptr)
|
||||
@ stub -version=0x600+ vwprintf_s
|
||||
@ stub -version=0x600+ wcrtomb
|
||||
@ cdecl -version=0x600+ wcrtomb(ptr long ptr)
|
||||
@ stub -version=0x600+ wcrtomb_s
|
||||
@ cdecl wcscat(wstr wstr)
|
||||
@ cdecl -version=0x600+ wcscat_s(wstr long wstr)
|
||||
|
|
|
@ -15,6 +15,7 @@ if(DLL_EXPORT_VERSION LESS 0x600)
|
|||
misc/dbgrpt.cpp
|
||||
stdlib/_invalid_parameter.c
|
||||
stdlib/rand_s.c
|
||||
wstring/wcrtomb.c
|
||||
)
|
||||
endif()
|
||||
|
||||
|
|
32
sdk/lib/crt/wstring/wcrtomb.c
Normal file
32
sdk/lib/crt/wstring/wcrtomb.c
Normal file
|
@ -0,0 +1,32 @@
|
|||
/*
|
||||
* msvcrt.dll mbcs functions
|
||||
*
|
||||
* Copyright 1999 Alexandre Julliard
|
||||
* Copyright 2000 Jon Griffths
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||
*/
|
||||
|
||||
#include <precomp.h>
|
||||
|
||||
/*********************************************************************
|
||||
* wcrtomb (MSVCRT.@)
|
||||
*/
|
||||
size_t CDECL wcrtomb( char *dst, wchar_t ch, mbstate_t *s)
|
||||
{
|
||||
if(s)
|
||||
*s = 0;
|
||||
return wctomb(dst, ch);
|
||||
}
|
|
@ -11,6 +11,7 @@ list(APPEND LIBCNTPR_WSTRING_SOURCE
|
|||
|
||||
list(APPEND CRT_WSTRING_SOURCE
|
||||
${LIBCNTPR_WSTRING_SOURCE}
|
||||
wstring/wcrtomb.c
|
||||
wstring/wcscoll.c
|
||||
wstring/wcstok.c
|
||||
wstring/wcsxfrm.c
|
||||
|
|
Loading…
Reference in a new issue