1 /**
2 * This file has no copyright assigned and is placed in the Public Domain.
3 * This file is part of the mingw-w64 runtime package.
4 * No warranty is given; refer to the file DISCLAIMER.PD within this package.
5 */
6
7 #include <stdarg.h>
8 #include <stddef.h>
9
10 /* Intentionally not including stdio.h, as it unconditionally defines the
11 * vsnprintf inline, and it can't be renamed with "#define vsnprintf othername"
12 * either, as stdio.h contains "#undef vsnprintf". */
13
14 int __cdecl __ms_vsnprintf(char *buffer, size_t n, const char *format, va_list arg);
15
16 int __cdecl vsnprintf(char *buffer, size_t n, const char *format, va_list arg);
vsnprintf(char * buffer,size_t n,const char * format,va_list arg)17 int __cdecl vsnprintf(char *buffer, size_t n, const char *format, va_list arg)
18 {
19 return __ms_vsnprintf(buffer, n, format, arg);
20 }
21