From 76fef96b2b29fc90cdfea3e595ab98d267c6b965 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Sat, 30 Sep 2023 20:24:58 +0200 Subject: Add `vprintf` --- tests/test_vprintf.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 tests/test_vprintf.c (limited to 'tests/test_vprintf.c') 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