![]() |
![]()
| ![]() |
![]()
NAMExt_dprintf() - Print formatted output to a low-level file descriptor LIBRARY#include <xtend/file.h> -lxtend SYNOPSISint xt_dprintf(int fd, const char * restrict format, ...) ARGUMENTSfd File descriptor to which items are written format printf-style format string DESCRIPTIONThe dprintf() function, which takes a file descriptor rather than a FILE stream pointer, is provided by many systems including BSDs and Linux, but not by all. Use of xt_dprintf() from libxtend will ensure portability of code. RETURN VALUESThe number of characters written EXAMPLESint fd; if ( (fd = open(filename, O_WRONLY|O_CREAT)) != -1 ) { SEE ALSOfprintf(3)
|