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

msvcrt: Added swprintf_s implementation.

parent 2ff04b9d
......@@ -1400,7 +1400,7 @@
@ cdecl strtol(str ptr long) msvcrt.strtol
@ cdecl strtoul(str ptr long) msvcrt.strtoul
@ cdecl strxfrm(ptr str long) msvcrt.strxfrm
@ stub swprintf_s
@ varargs swprintf_s(ptr long wstr) msvcrt.swprintf_s
@ varargs swscanf(wstr wstr) msvcrt.swscanf
@ stub swscanf_s
@ cdecl system(str) msvcrt.system
......
......@@ -1384,7 +1384,7 @@
@ cdecl strtol(str ptr long) msvcrt.strtol
@ cdecl strtoul(str ptr long) msvcrt.strtoul
@ cdecl strxfrm(ptr str long) msvcrt.strxfrm
@ stub swprintf_s
@ varargs swprintf_s(ptr long wstr) msvcrt.swprintf_s
@ varargs swscanf(wstr wstr) msvcrt.swscanf
@ stub swscanf_s
@ cdecl system(str) msvcrt.system
......
......@@ -1341,7 +1341,7 @@
@ cdecl strtoul(str ptr long) MSVCRT_strtoul
@ cdecl strxfrm(ptr str long) MSVCRT_strxfrm
@ varargs swprintf(ptr wstr) MSVCRT_swprintf
# stub swprintf_s
@ varargs swprintf_s(ptr long wstr) MSVCRT_swprintf_s
@ varargs swscanf(wstr wstr) MSVCRT_swscanf
# stub swscanf_s
@ cdecl system(str) MSVCRT_system
......
......@@ -1065,6 +1065,23 @@ int CDECL MSVCRT_swprintf( MSVCRT_wchar_t *str, const MSVCRT_wchar_t *format, ..
}
/*********************************************************************
* swprintf_s (MSVCRT.@)
*/
int CDECL MSVCRT_swprintf_s(MSVCRT_wchar_t *str, MSVCRT_size_t numberOfElements,
const MSVCRT_wchar_t *format, ... )
{
__ms_va_list ap;
int r;
__ms_va_start(ap, format);
r = MSVCRT_vsnwprintf_s(str, numberOfElements*sizeof(MSVCRT_wchar_t),
INT_MAX, format, ap);
__ms_va_end(ap);
return r;
}
/*********************************************************************
* vswprintf (MSVCRT.@)
*/
int CDECL MSVCRT_vswprintf( MSVCRT_wchar_t* str, const MSVCRT_wchar_t* format, __ms_va_list args )
......
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