msvcrt: Add _snprintf_s implementation.

oldstable
Nikolay Sivov 2010-06-10 23:12:20 +04:00 committed by Alexandre Julliard
parent 7c52046936
commit 59bddde594
5 changed files with 18 additions and 4 deletions

View File

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

View File

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

View File

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

View File

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

View File

@ -1102,6 +1102,20 @@ int CDECL MSVCRT__snprintf(char *str, unsigned int len, const char *format, ...)
return retval;
}
/*********************************************************************
* _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)
*/