![]() |
![]()
| ![]() |
![]()
NAMExt_ff_open() - Open a fast file stream for a raw or compressed file LIBRARY#include <xtend/fast-file.h> -lxtend SYNOPSISxt_ff_t *xt_ff_open(const char *filename, int flags) ARGUMENTSfilename: Name of the file to be opened mode: Bit mask as used by open(2) DESCRIPTIONxt_ff_open(3) opens a raw data file using _xt_ff_raw_open(3) or a gzipped, bzipped, or xzipped file using xt_ff_popen(3), returning a pointer to a xt_ff_t stream. Must be used in conjunction with xt_ff_close(3). 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 VALUESA pointer to the FILE structure or NULL if open failed SEE ALSOfopen(3), popen(3), gzip(1), bzip2(1), xz(1)
|