summaryrefslogtreecommitdiff
path: root/lib/libc/stdio/dprintf.c
blob: f9a73654aa95bbe3db969e4f904df8f000ba33e1 (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 vdprintf, dprintf, va_list

int dprintf(int fildes, const char *restrict format, ...)
{
	int r;
	va_list ap;
	va_start(ap, format);
	r = vdprintf(fildes, format, ap);
	va_end(ap);
	return r;
}