summaryrefslogtreecommitdiff
path: root/tests/test_vfprintf.c
diff options
context:
space:
mode:
authorjvoisin2023-10-01 22:06:17 +0200
committerjvoisin2023-10-01 22:06:17 +0200
commit32b21b7d85383df49030b18240c1409e73001066 (patch)
tree461982e80c5dc2f1c99f11fe94efa2c8557a73fa /tests/test_vfprintf.c
parent6a801d8a749da3889ec57030cee09d1d60b4663e (diff)
Add vfprintf`
Diffstat (limited to 'tests/test_vfprintf.c')
-rw-r--r--tests/test_vfprintf.c16
1 files changed, 16 insertions, 0 deletions
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 @@
1#include "common.h"
2
3#include <stdarg.h>
4#include <stdio.h>
5
6void wrap(char *format, ...) {
7 va_list args;
8 va_start(args, format);
9 vfprintf(stdout, format, args);
10 va_end(args);
11}
12
13
14int main(int argc, char** argv) {
15 wrap("%s", "1234567");
16}