4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-01-21 05:49:19 +08:00
Yaakov Selkowitz 7192f84096 ansification: remove _HAVE_STDC
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
2018-01-17 11:47:30 -06:00

44 lines
676 B
C

#include <_ansi.h>
#include <stdio.h>
#include "c99ppe.h"
#include <stdarg.h>
#ifdef INTEGER_ONLY
# define vsnprintf vsniprintf
#endif
typedef struct
{
char* str;
unsigned int pad0[ 3 ];
size_t size;
unsigned int pad1[ 3 ];
const char* fmt;
unsigned int pad2[ 3 ];
va_list ap;
} c99_vsnprintf_t;
#ifndef _REENT_ONLY
int
vsnprintf (char *__restrict str,
size_t size,
const char *__restrict fmt,
va_list ap)
{
c99_vsnprintf_t args;
CHECK_STR_INIT(_REENT);
args.str = str;
args.size = size;
args.fmt = fmt;
va_copy(args.ap,ap);
return __send_to_ppe(SPE_C99_SIGNALCODE, SPE_C99_VSNPRINTF, &args);
}
#endif /* ! _REENT_ONLY */