msvcp140: Add sprintf.

Signed-off-by: Daniel Lehman <dlehman@esri.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Daniel Lehman 2016-04-08 16:14:28 -07:00 committed by Alexandre Julliard
parent 1135db7095
commit 69ad826ebb
1 changed files with 10 additions and 0 deletions

View File

@ -117,6 +117,16 @@ int __cdecl _scprintf(const char* fmt, ...)
__ms_va_end(valist);
return ret;
}
int __cdecl sprintf(char *buf, const char *fmt, ...)
{
int ret;
__ms_va_list valist;
__ms_va_start(valist, fmt);
ret = __stdio_common_vsprintf(UCRTBASE_PRINTF_STANDARD_SNPRINTF_BEHAVIOUR, buf, -1, fmt, NULL, valist);
__ms_va_end(valist);
return ret;
}
#endif
static void init_cxx_funcs(void)