Query: zopen
OS: freebsd
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
ZOPEN(3) BSD Library Functions Manual ZOPEN(3)NAMEzopen -- open a gzip compressed streamLIBRARYCompression Library (libz, -lz)SYNOPSISFILE * zopen(const char *path, const char *mode);DESCRIPTIONThe zopen() opens a gzip file whose name is the string pointed to by path and associates a stream with it. It is a wrapper around zlib(3) and standard stream I/O APIs. The argument mode have the same meaning as it does in fopen(3). The zopen function will associate read, write, seek and close functions of zlib(3) after successfully opened a file with funopen(3) so that they will be used to read or write the new stream.RETURN VALUESUpon successful completion zopen returns a FILE pointer. Otherwise, NULL is returned and the global variable errno is set to indicate the error.ERRORSIn addition to the errors documented for fopen(3), the zopen function may also fail for: [ENOMEM] Insufficient memory is available.COMPATIBILITYThis implementation of zopen function first appeared in NetBSD 1.6 and FreeBSD 4.5. The zopen function may not be portable to systems other than FreeBSD.SEE ALSOfopen(3), funopen(3), zlib(3)BSDMarch 5, 2014 BSD
Related Man Pages |
---|
funopen(3) - freebsd |
zopen(3) - opendarwin |
fwopen(3) - netbsd |
funopen(3) - netbsd |
fwopen(3) - osx |
Similar Topics in the Unix Linux Community |
---|
How to get fdes from FILE* |
how to write a file to binary format in C ? |
Installing zlib |
unix Library path variables. |
zlib.h in custom path |