![]() |
![]()
| ![]() |
![]()
NAMExt_ff_printf() - Print formatted data to a fast file stream LIBRARY#include <xtend/fast-file.h> -lxtend SYNOPSISint xt_ff_printf(xt_ff_t *stream, const char *format, ...) ARGUMENTSstream Pointer to an xt_ff_t object opened by xt_ff_open(3) format Format string indicating how remaining arguments are printed DESCRIPTIONxt_ff_printf(3) writes formatted data to a xt_ff_t stream the same was as fprintf(3) writes to a FILE stream. The xt_ff_ile_t system is simpler than and much faster than traditional FILE on typical systems. It is intended for processing large files character-by-character, where low-level block I/O is not convenient, but FILE I/O causes a bottleneck. RETURN VALUESThe number of characters written EXAMPLESxt_ff_ile_t *stream; int count = 1; if ( (stream = xt_ff_open(filename, O_WRONLY|O_CREAT|O_TRUNC)) == NULL ) { SEE ALSOfprintf(3), xt_ff_open(3), xt_ff_close(3), xt_ff_putc(3), xt_ff_puts(3)
|