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:
parent
1135db7095
commit
69ad826ebb
|
@ -117,6 +117,16 @@ int __cdecl _scprintf(const char* fmt, ...)
|
||||||
__ms_va_end(valist);
|
__ms_va_end(valist);
|
||||||
return ret;
|
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
|
#endif
|
||||||
|
|
||||||
static void init_cxx_funcs(void)
|
static void init_cxx_funcs(void)
|
||||||
|
|
Loading…
Reference in New Issue