Commit 97194ec0 authored by Jason Edmeades's avatar Jason Edmeades Committed by Alexandre Julliard

msvcrt: Add support for sprintf_s.

parent a2d4e5cb
......@@ -747,6 +747,7 @@
@ cdecl sin(double) MSVCRT_sin
@ cdecl sinh(double) MSVCRT_sinh
@ varargs sprintf(ptr str) MSVCRT_sprintf
@ varargs sprintf_s(ptr long str) MSVCRT_sprintf_s
@ cdecl sqrt(double) MSVCRT_sqrt
@ cdecl srand(long) MSVCRT_srand
@ varargs sscanf(str str) MSVCRT_sscanf
......
......@@ -902,6 +902,20 @@ int CDECL MSVCRT_sprintf( char *str, const char *format, ... )
}
/*********************************************************************
* sprintf_s (MSVCRT.@)
*/
int CDECL MSVCRT_sprintf_s( char *str, MSVCRT_size_t num, const char *format, ... )
{
__ms_va_list ap;
int r;
__ms_va_start( ap, format );
r = MSVCRT_vsnprintf( str, num, format, ap );
__ms_va_end( ap );
return r;
}
/*********************************************************************
* swprintf (MSVCRT.@)
*/
int CDECL MSVCRT_swprintf( MSVCRT_wchar_t *str, const MSVCRT_wchar_t *format, ... )
......
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