xt_fclose(3)

NAME
xt_fclose() - Close a FILE stream opened by xt_fopen()

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

SYNOPSIS
int     xt_fclose(FILE *stream)

ARGUMENTS
stream: The FILE structure to be closed

DESCRIPTION
Close a FILE stream with fclose() or pclose() as appropriate. Automatically determines the proper close function to call using S_ISFIFO on the stream stat structure.

RETURN VALUES
The value returned by fclose() or pclose()

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