fxlibc/src/libc/stdio/dprintf.c

17 lines
332 B
C
Raw Normal View History

#include <fxlibc/stdio.h>
2020-09-17 19:27:01 +02:00
2020-10-14 15:18:10 +02:00
/*
** The function dprintf() is the same as fprintf() except that it outputs to a
** file descriptor, fd, instead of to a stdio stream.
*/
2020-09-17 19:27:01 +02:00
int dprintf(int fd, const char *restrict format, ...)
{
va_list ap;
int ret;
va_start(ap, format);
ret = vdprintf(fd, format, ap);
va_end(ap);
return (ret);
}