fxlibc/src/libc/stdio/vsprintf.c

13 lines
434 B
C
Raw Normal View History

2021-05-09 17:34:00 +02:00
#include <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
}