From 9baeae718716c41bc9a347810b33071a3718dd3e Mon Sep 17 00:00:00 2001 From: Xavier Del Campo Romero Date: Sat, 26 Jul 2025 00:29:40 +0200 Subject: Add fctvprintf --- printf.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'printf.c') diff --git a/printf.c b/printf.c index 02c0075..4f2be94 100644 --- a/printf.c +++ b/printf.c @@ -918,3 +918,10 @@ int fctprintf(void (*out)(char character, void* arg), void* arg, const char* for va_end(va); return ret; } + + +int fctvprintf(void (*out)(char character, void* arg), void* arg, const char* format, va_list va) +{ + const out_fct_wrap_type out_fct_wrap = { out, arg }; + return _vsnprintf(_out_fct, (char*)(uintptr_t)&out_fct_wrap, (size_t)-1, format, va); +} -- cgit v1.2.3