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

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