diff options
| author | jvoisin | 2023-09-30 20:24:58 +0200 |
|---|---|---|
| committer | jvoisin | 2023-09-30 20:24:58 +0200 |
| commit | 76fef96b2b29fc90cdfea3e595ab98d267c6b965 (patch) | |
| tree | c3d5591a1782ec92ae2a9e9cf2739db681875841 /tests/test_vprintf.c | |
| parent | 160298c6fb4c5151ef58ef1556ae2c271d8a9a9e (diff) | |
Add `vprintf`
Diffstat (limited to 'tests/test_vprintf.c')
| -rw-r--r-- | tests/test_vprintf.c | 16 |
1 files changed, 16 insertions, 0 deletions
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 @@ | |||
| 1 | #include "common.h" | ||
| 2 | |||
| 3 | #include <stdarg.h> | ||
| 4 | #include <stdio.h> | ||
| 5 | |||
| 6 | void wrap(char *format, ...) { | ||
| 7 | va_list args; | ||
| 8 | va_start(args, format); | ||
| 9 | vprintf(format, args); | ||
| 10 | va_end(args); | ||
| 11 | } | ||
| 12 | |||
| 13 | |||
| 14 | int main(int argc, char** argv) { | ||
| 15 | wrap("%s", "1234567"); | ||
| 16 | } | ||
