Commit 59bddde5 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

msvcrt: Add _snprintf_s implementation.

parent 7c520469
......@@ -1044,7 +1044,7 @@
@ stub _snprintf_c
@ stub _snprintf_c_l
@ stub _snprintf_l
@ stub _snprintf_s
@ varargs _snprintf_s(ptr long long str) msvcrt._snprintf_s
@ stub _snprintf_s_l
@ stub _snscanf
@ stub _snscanf_l
......
......@@ -891,7 +891,7 @@
@ stub _snprintf_c
@ stub _snprintf_c_l
@ stub _snprintf_l
@ stub _snprintf_s
@ varargs _snprintf_s(ptr long long str) msvcrt._snprintf_s
@ stub _snprintf_s_l
@ stub _snscanf
@ stub _snscanf_l
......
......@@ -877,7 +877,7 @@
@ stub _snprintf_c
@ stub _snprintf_c_l
@ stub _snprintf_l
@ stub _snprintf_s
@ varargs _snprintf_s(ptr long long str) msvcrt._snprintf_s
@ stub _snprintf_s_l
@ stub _snscanf
@ stub _snscanf_l
......
......@@ -830,7 +830,7 @@
# stub _snprintf_c
# stub _snprintf_c_l
# stub _snprintf_l
# stub _snprintf_s
@ varargs _snprintf_s(ptr long long str) MSVCRT__snprintf_s
# stub _snprintf_s_l
# stub _snscanf
# stub _snscanf_l
......
......@@ -1103,6 +1103,20 @@ int CDECL MSVCRT__snprintf(char *str, unsigned int len, const char *format, ...)
}
/*********************************************************************
* _snprintf_s (MSVCRT.@)
*/
int CDECL MSVCRT__snprintf_s(char *str, unsigned int len, unsigned int count,
const char *format, ...)
{
int retval;
__ms_va_list valist;
__ms_va_start(valist, format);
retval = MSVCRT_vsnprintf_s_l(str, len, count, format, NULL, valist);
__ms_va_end(valist);
return retval;
}
/*********************************************************************
* vsnwprintf_internal (INTERNAL)
*/
static inline int vsnwprintf_internal(MSVCRT_wchar_t *str, MSVCRT_size_t len,
......
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