aboutsummaryrefslogtreecommitdiffstats
path: root/printf.c
diff options
context:
space:
mode:
authorMarco Paland <marco@paland.com>2019-03-25 23:10:37 +0100
committerMarco Paland <marco@paland.com>2019-03-25 23:10:37 +0100
commit637df9333d481028a97621e65c76c8df3535f49d (patch)
tree643c22e9e595f5d9cd615f7a397fe7bd17b12bcf /printf.c
parent87e1c834f75249d25e426c674b65419ccfa41b20 (diff)
downloadprintf-637df9333d481028a97621e65c76c8df3535f49d.tar.gz
printf-637df9333d481028a97621e65c76c8df3535f49d.tar.bz2
printf-637df9333d481028a97621e65c76c8df3535f49d.zip
feat(printf): added vprintf() support
Closes #43
Diffstat (limited to 'printf.c')
-rw-r--r--printf.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/printf.c b/printf.c
index c9cebfc..cb956bc 100644
--- a/printf.c
+++ b/printf.c
@@ -884,6 +884,13 @@ int snprintf_(char* buffer, size_t count, const char* format, ...)
}
+int vprintf_(const char* format, va_list va)
+{
+ char buffer[1];
+ return _vsnprintf(_out_char, buffer, (size_t)-1, format, va);
+}
+
+
int vsnprintf_(char* buffer, size_t count, const char* format, va_list va)
{
return _vsnprintf(_out_buffer, buffer, count, format, va);