msvcrt: Add _snprintf_s implementation.
This commit is contained in:
parent
7c52046936
commit
59bddde594
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue