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

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