summaryrefslogtreecommitdiff
path: root/lib/libc/stdio/fprintf.c
blob: c7f31f3411b0be42c87f4c58c0a97dc64c890fd0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include <stdarg.h> // for va_end, va_start
#include <stdio.h>  // for fprintf, vfprintf, FILE, va_list

int fprintf(FILE *restrict stream, const char *restrict format, ...)
{
	int r;
	va_list ap;
	va_start(ap, format);
	r = vfprintf(stream, format, ap);
	va_end(ap);
	return r;
}