gzdopen — Attempts to associate the open file referenced by fd with a gzFile object.
Libz.lib
#include <zlib.h>
gzFile gzdopen ( int fd, const char *mode );
The gzdopen() function shall attempt to associate the open file referenced by fd with a gzFile object. The mode argument is based on that of fopen(), but the mode parameter may also contain the following characters:
If fd refers to an uncompressed file, and mode refers to a read mode, gzdopen() shall attempt to open the file and return a gzFile object suitable for reading directly from the file without any decompression.
If mode
is NULL, or if mode
does not contain
one of r, w, or a,
gzdopen() shall return Z_NULL
,
and need not set any other error condition.
#include <stdio.h> |
On error, gzdopen()
may set
the global variable errno
to indicate the error.
For additional information or queries on this page send feedback
© 2008 Nokia Corporation. All rights reserved. This documentation can be used in the connection with this Product to help and support the user. |