open a gzip compressed stream
Compression Library (libz, -lz)
() opens a gzip file whose name is
the string pointed to by path
a stream with it. It is a wrapper around
and standard stream I/O APIs.
The argument mode
have the same meaning as it
function will associate read,
write, seek and close functions of
after successfully opened a file with
so that they will be used to read or write the new stream.
Upon successful completion
FILE pointer. Otherwise,
and the global variable errno
is set to
indicate the error.
In addition to the errors documented for
function may also fail for:
- Insufficient memory is available.
This implementation of
appeared in NetBSD 1.6
function may not be
portable to systems other than FreeBSD