From 32b21b7d85383df49030b18240c1409e73001066 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Sun, 1 Oct 2023 22:06:17 +0200 Subject: Add vfprintf` --- tests/test_vfprintf.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 tests/test_vfprintf.c (limited to 'tests/test_vfprintf.c') diff --git a/tests/test_vfprintf.c b/tests/test_vfprintf.c new file mode 100644 index 0000000..8ccf994 --- /dev/null +++ b/tests/test_vfprintf.c @@ -0,0 +1,16 @@ +#include "common.h" + +#include +#include + +void wrap(char *format, ...) { + va_list args; + va_start(args, format); + vfprintf(stdout, format, args); + va_end(args); +} + + +int main(int argc, char** argv) { + wrap("%s", "1234567"); +} -- cgit v1.3