DPRINTF(3) NEWLIB DPRINTF(3)NAME
4.3 `dprintf', `vdprintf'--print to a file descriptor
SYNOPSIS
#include <stdio.h>
#include <stdarg.h>
int dprintf(int FD, const char *FORMAT, ...);
int vdprintf(int FD, const char *FORMAT, va_list AP);
int _dprintf_r(struct _reent *PTR, int FD,
const char *FORMAT, ...);
int _vdprintf_r(struct _reent *PTR, int FD,
const char *FORMAT, va_list AP);
DESCRIPTION
`dprintf' and `vdprintf' allow printing a format, similarly to
`printf', but write to a file descriptor instead of to a `FILE' stream.
The functions `_dprintf_r' and `_vdprintf_r' are simply reentrant
versions of the functions above.
RETURNS
The return value and errors are exactly as for `write', except that
`errno' may also be set to `ENOMEM' if the heap is exhausted.
PORTABILITY
This function is originally a GNU extension in glibc and is not porta‐
ble.
Supporting OS subroutines required: `sbrk', `write'.
SEE ALSOdprintf is part of the library. The full documentation for is main‐
tained as a Texinfo manual. If info and are properly installed at your
site, the command
info
will give you access to the complete manual.
NEWLIB April 2010 DPRINTF(3)