stdio.h: Add snprintf inline wrapper.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jacek Caban 2020-02-18 15:21:02 +01:00 committed by Alexandre Julliard
parent ad4c734c37
commit 0eb79209d1
1 changed files with 11 additions and 1 deletions

View File

@ -192,7 +192,17 @@ static inline int unlink(const char* path) { return _unlink(path); }
#define _UNLINK_DEFINED
#endif
static inline int vsnprintf(char *buffer, size_t size, const char *format, __ms_va_list args) { return _vsnprintf(buffer,size,format,args); }
#define snprintf _snprintf
static inline int WINAPIV snprintf(char *buffer, size_t size, const char *format, ...)
{
int ret;
__ms_va_list args;
__ms_va_start(args, format);
ret = vsnprintf(buffer, size, format, args);
__ms_va_end(args);
return ret;
}
static inline int WINAPIV _snprintf(char *buffer, size_t size, const char *format, ...)
{