From 76fef96b2b29fc90cdfea3e595ab98d267c6b965 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Sat, 30 Sep 2023 20:24:58 +0200 Subject: Add `vprintf` --- tests/Makefile | 1 + tests/test_vprintf.c | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 tests/test_vprintf.c (limited to 'tests') diff --git a/tests/Makefile b/tests/Makefile index c862c52..4c127b5 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -113,6 +113,7 @@ RUNTIME_TARGETS= \ test_vsnprintf_dynamic \ test_vsnprintf_static \ test_vsprintf \ + test_vprintf \ test_wcscat_static_write \ test_wcscpy_static_write \ test_wcsncat_static_write \ diff --git a/tests/test_vprintf.c b/tests/test_vprintf.c new file mode 100644 index 0000000..e2e963e --- /dev/null +++ b/tests/test_vprintf.c @@ -0,0 +1,16 @@ +#include "common.h" + +#include +#include + +void wrap(char *format, ...) { + va_list args; + va_start(args, format); + vprintf(format, args); + va_end(args); +} + + +int main(int argc, char** argv) { + wrap("%s", "1234567"); +} -- cgit v1.3