aboutsummaryrefslogtreecommitdiff
path: root/lib/libk/stdio/printf.c
blob: 4c4559393daa358b80df749af2c10071fc37c752 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include <stdio.h>

int
printf(const char *__restrict__ format, ...)
{
  int c = 0;
  va_list ap;
  va_start(ap, format);
  c += vfprintf(stdout, format, ap);
  va_end(ap);
  return c;
}