diff options
| author | Xavier Del Campo Romero <xavi92@disroot.org> | 2025-07-26 00:29:40 +0200 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi92@disroot.org> | 2025-07-26 00:29:40 +0200 |
| commit | 9baeae718716c41bc9a347810b33071a3718dd3e (patch) | |
| tree | 025c3a909b9f481b5bd30f14658fa8637523214b /printf.c | |
| parent | e607299f35596e891759ab9256c953cc03d804ca (diff) | |
Diffstat (limited to 'printf.c')
| -rw-r--r-- | printf.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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);
+}
|
