fxlibc/src/stdio/vsprintf.c

13 lines
441 B
C
Raw Normal View History

#include <fxlibc/stdio.h>
2020-09-17 19:27:01 +02:00
2020-10-14 15:18:10 +02:00
/*
** The functions vsprintf() are equivalent to the sprintf() except that they
** are called with a va_list instead of a variable number of arguments. These
** functions do not call the va_end macro. Because they invoke the va_arg macro,
** the value of ap is undefined after the call.
*/
2020-09-17 19:27:01 +02:00
int vsprintf(char *restrict str, const char *restrict format, va_list ap)
{
2020-10-14 15:18:10 +02:00
return (vsnprintf(str, 65535, format, ap));
2020-09-17 19:27:01 +02:00
}