fxlibc/src/libc/stdio/vsnprintf.c

15 lines
283 B
C
Raw Normal View History

2021-05-09 17:34:00 +02:00
#include <stdio.h>
#include <fxlibc/printf.h>
2020-09-17 19:27:01 +02:00
int vsnprintf(char * restrict str, size_t size, char const * restrict fmt,
va_list args)
2020-09-17 19:27:01 +02:00
{
/* This is valid even if str=NULL. */
struct __printf_output out = {
.str = str,
.size = size,
};
2020-09-17 19:27:01 +02:00
return __printf(&out, fmt, &args);
2020-09-17 19:27:01 +02:00
}