msvcrt: Added swprintf_s implementation.

This commit is contained in:
Piotr Caban 2010-04-20 21:39:01 +02:00 committed by Alexandre Julliard
parent 2ff04b9d57
commit c483bebe2b
4 changed files with 20 additions and 3 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -1064,6 +1064,23 @@ int CDECL MSVCRT_swprintf( MSVCRT_wchar_t *str, const MSVCRT_wchar_t *format, ..
return r;
}
/*********************************************************************
* 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.@)
*/