msvcrt: Add _snwprintf_s implementation.

This commit is contained in:
Nikolay Sivov 2010-06-10 23:28:01 +04:00 committed by Alexandre Julliard
parent 59bddde594
commit 1a234159fe
5 changed files with 18 additions and 4 deletions

View File

@ -1052,7 +1052,7 @@
@ stub _snscanf_s_l
@ varargs _snwprintf(ptr long wstr) msvcrt._snwprintf
@ stub _snwprintf_l
@ stub _snwprintf_s
@ varargs _snwprintf_s(ptr long long wstr) msvcrt._snwprintf_s
@ stub _snwprintf_s_l
@ stub _snwscanf
@ stub _snwscanf_l

View File

@ -899,7 +899,7 @@
@ stub _snscanf_s_l
@ varargs _snwprintf(ptr long wstr) msvcrt._snwprintf
@ stub _snwprintf_l
@ stub _snwprintf_s
@ varargs _snwprintf_s(ptr long long wstr) msvcrt._snwprintf_s
@ stub _snwprintf_s_l
@ stub _snwscanf
@ stub _snwscanf_l

View File

@ -885,7 +885,7 @@
@ stub _snscanf_s_l
@ varargs _snwprintf(ptr long wstr) msvcrt._snwprintf
@ stub _snwprintf_l
@ stub _snwprintf_s
@ varargs _snwprintf_s(ptr long long wstr) msvcrt._snwprintf_s
@ stub _snwprintf_s_l
@ stub _snwscanf
@ stub _snwscanf_l

View File

@ -838,7 +838,7 @@
# stub _snscanf_s_l
@ varargs _snwprintf(ptr long wstr) MSVCRT__snwprintf
# stub _snwprintf_l
# stub _snwprintf_s
@ varargs _snwprintf_s(ptr long long wstr) MSVCRT__snwprintf_s
# stub _snwprintf_s_l
# stub _snwscanf
# stub _snwscanf_l

View File

@ -1204,6 +1204,20 @@ int CDECL MSVCRT__snwprintf( MSVCRT_wchar_t *str, unsigned int len, const MSVCRT
return retval;
}
/*********************************************************************
* _snwprintf_s (MSVCRT.@)
*/
int CDECL MSVCRT__snwprintf_s( MSVCRT_wchar_t *str, unsigned int len, unsigned int count,
const MSVCRT_wchar_t *format, ...)
{
int retval;
__ms_va_list valist;
__ms_va_start(valist, format);
retval = MSVCRT_vsnwprintf_s_l(str, len, count, format, NULL, valist);
__ms_va_end(valist);
return retval;
}
/*********************************************************************
* sprintf (MSVCRT.@)
*/