![]() |
![]()
| ![]() |
![]()
NAMExt_ff_stdin() - Create a fast file stream attached to descriptor 0 LIBRARY#include <xtend/fast-file.h> -lxtend SYNOPSISxt_ff_t *xt_ff_stdin(void) ARGUMENTSNone DESCRIPTIONxt_ff_stdin(3) is a simple wrapper function for connecting file descriptor 0 to an xt_ff_t object using xt_ff_dopen(3). This is useful for high-performance filter programs, where using the traditional FILE *stdin would cause a bottleneck. The xt_ff_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 VALUESPointer to an xt_ff_t object if successful, NULL otherwise EXAMPLESxt_ff_t *stream; // "-" as a filename argument traditionally indicates stdin if ( strcmp(argv[arg], "-") == 0 ) SEE ALSOxt_ff_open(3), xt_ff_dopen(3)
|