dprintf()

Write output to a file associated with a file descriptor

Synopsis:

#include <stdio.h>

int dprintf( int filedes, 
             const char* format, 
             ... );

Arguments:

filedes
A file descriptor that's associated with the file where you want to send the output.
format
A string that specifies the format of the output. The formatting string determines what additional arguments you need to provide. For more information, see printf().

Library:

libc

Use the -l c option to qcc to link against this library. This library is usually included automatically.

Description:

The dprintf() function writes output to the file associated with the file descriptor filedes, under control of the format specifier.

Returns:

The number of characters written, or a negative value if an output error occurred (errno is set).

Classification:

POSIX 2008

Safety:  
Cancellation point Yes
Interrupt handler No
Signal handler Yes
Thread Yes