msvcrt: Added _swprintf_s_l implementation.

This commit is contained in:
Piotr Caban 2013-08-01 13:55:39 +02:00 committed by Alexandre Julliard
parent ec7ebd358d
commit a51ffcd442
6 changed files with 21 additions and 5 deletions

View File

@ -1371,7 +1371,7 @@
@ stub _swprintf_c_l
@ stub _swprintf_p
@ varargs _swprintf_p_l(ptr long wstr ptr) msvcrt._swprintf_p_l
@ stub _swprintf_s_l
@ varargs _swprintf_s_l(ptr long wstr ptr) msvcrt._swprintf_s_l
@ varargs _swscanf_l(wstr wstr ptr) msvcrt._swscanf_l
@ varargs _swscanf_s_l(wstr wstr ptr) msvcrt._swscanf_s_l
@ extern _sys_errlist msvcrt._sys_errlist

View File

@ -1733,7 +1733,7 @@
@ stub _swprintf_c_l
@ stub _swprintf_p
@ varargs _swprintf_p_l(ptr long wstr ptr) msvcrt._swprintf_p_l
@ stub _swprintf_s_l
@ varargs _swprintf_s_l(ptr long wstr ptr) msvcrt._swprintf_s_l
@ varargs _swscanf_l(wstr wstr ptr) msvcrt._swscanf_l
@ varargs _swscanf_s_l(wstr wstr ptr) msvcrt._swscanf_s_l
@ extern _sys_errlist msvcrt._sys_errlist

View File

@ -1049,7 +1049,7 @@
@ stub _swprintf_c
@ stub _swprintf_p
@ varargs _swprintf_p_l(ptr long wstr ptr) msvcrt._swprintf_p_l
@ stub _swprintf_s_l
@ varargs _swprintf_s_l(ptr long wstr ptr) msvcrt._swprintf_s_l
@ varargs _swscanf_l(wstr wstr ptr) msvcrt._swscanf_l
@ varargs _swscanf_s_l(wstr wstr ptr) msvcrt._swscanf_s_l
@ extern _sys_errlist msvcrt._sys_errlist

View File

@ -1025,7 +1025,7 @@
@ stub _swprintf_c_l
@ stub _swprintf_p
@ varargs _swprintf_p_l(ptr long wstr ptr) msvcrt._swprintf_p_l
@ stub _swprintf_s_l
@ varargs _swprintf_s_l(ptr long wstr ptr) msvcrt._swprintf_s_l
@ varargs _swscanf_l(wstr wstr ptr) msvcrt._swscanf_l
@ varargs _swscanf_s_l(wstr wstr ptr) msvcrt._swscanf_s_l
@ extern _sys_errlist msvcrt._sys_errlist

View File

@ -993,7 +993,7 @@
# stub _swprintf_c(ptr long str)
# stub _swprintf_c_l(ptr long str ptr)
@ varargs _swprintf_p_l(ptr long wstr ptr) MSVCRT_swprintf_p_l
# stub _swprintf_s_l(ptr long str ptr)
@ varargs _swprintf_s_l(ptr long wstr ptr) MSVCRT__swprintf_s_l
@ varargs _swscanf_l(wstr wstr ptr) MSVCRT__swscanf_l
@ varargs _swscanf_s_l(wstr wstr ptr) MSVCRT__swscanf_s_l
@ extern _sys_errlist MSVCRT__sys_errlist

View File

@ -946,6 +946,22 @@ int CDECL MSVCRT_swprintf_s(MSVCRT_wchar_t *str, MSVCRT_size_t numberOfElements,
return r;
}
/*********************************************************************
* _swprintf_s_l (MSVCRT.@)
*/
int CDECL MSVCRT__swprintf_s_l(MSVCRT_wchar_t *str, MSVCRT_size_t numberOfElements,
const MSVCRT_wchar_t *format, MSVCRT__locale_t locale, ... )
{
__ms_va_list ap;
int r;
__ms_va_start(ap, locale);
r = MSVCRT_vsnwprintf_s_l(str, numberOfElements, INT_MAX, format, locale, ap);
__ms_va_end(ap);
return r;
}
/*********************************************************************
* _vswprintf (MSVCRT.@)
*/