Updated: April 19, 2023 |
Write output to a file associated with a file descriptor
#include <stdio.h> int dprintf( int filedes, const char* format, ... );
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
The dprintf() function writes output to the file associated with the file descriptor filedes, under control of the format specifier.
The number of characters written, or a negative value if an output error occurred (errno is set).
Safety: | |
---|---|
Cancellation point | Yes |
Interrupt handler | No |
Signal handler | Yes |
Thread | Yes |