summaryrefslogtreecommitdiffstats
path: root/mdk-stage1/dietlibc/lib/vprintf.c
blob: 46ecc47a4cdc21f5c22091e3c8bdc1210c1969bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <stdarg.h>
#include <linux/types.h>
#include <unistd.h>
#include <stdlib.h>

int vsnprintf (char *str,size_t size,const char *format, va_list arg_ptr);

int vprintf(const char *format, va_list ap)
{
  char tmp[1000000];
  size_t n = vsnprintf(tmp, sizeof(tmp), format, ap);
  write(1, tmp, n);
  return n;
}