Updated: April 19, 2023 |
Write output to a file associated with a file descriptor (varargs)
#include <stdio.h> #include <stdarg.h> int vdprintf( int filedes, const char* format, va_list arg );
libc
Use the -l c option to qcc to link against this library. This library is usually included automatically.
The vdprintf() function writes output to the file associated with the file descriptor filedes, under control of the format specifier.
The vdprintf() function is a varargs version of dprintf().
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 |