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 portable.
   Supporting OS subroutines required: `sbrk', `write'.

SEE ALSO
dprintf is part of the library. The full documentation for is maintained as a Texinfo manual. If info and are properly installed at your site, the command

    info

will give you access to the complete manual.