xt_fopen(3)

NAME
xt_fopen() - Open a raw or compressed file

LIBRARY
#include <xtend/file.h>
-lxtend

SYNOPSIS
FILE    *xt_fopen(const char *filename, const char *mode)

ARGUMENTS
filename:   Name of the file to be opened
mode:       "r" or "w", passed to fopen() or popen()

DESCRIPTION
Open a raw data file using fopen() or a compressed file using popen(). Must be used in conjunction with xt_fclose() to ensure that fclose() or pclose() is called where appropriate.

RETURN VALUES
A pointer to the FILE structure or NULL if open failed

SEE ALSO
fopen(3), popen(3), gzip(1), bzip2(1), xz(1)