aboutsummaryrefslogtreecommitdiff
path: root/tests/core/test_vprintf.in
blob: a8af573585508fb325e3c8a629ee4ea098a0a5fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include <stdio.h>
#include <stdarg.h>

void print(char* format, ...) {
  va_list args;
  va_start(args, format);
  vprintf(format, args);
  va_end(args);
}

int main() {
  print("Call with %d variable argument.\n", 1);
  print("Call with %d variable %s.\n", 2, "arguments");

  return 0;
}