diff options
| author | Mark Adler <madler@alumni.caltech.edu> | 2011-10-02 12:09:29 -0700 |
|---|---|---|
| committer | Mark Adler <madler@alumni.caltech.edu> | 2011-10-02 12:09:29 -0700 |
| commit | be959acf80082c539cd533e58d78584311f1966a (patch) | |
| tree | 2b71f3a3db6869c2c647d4d54edf0bf5463c27b1 | |
| parent | 00c836e325a07419f5d855e2f275500a37cb27d2 (diff) | |
| download | zlib-be959acf80082c539cd533e58d78584311f1966a.tar.gz zlib-be959acf80082c539cd533e58d78584311f1966a.tar.bz2 zlib-be959acf80082c539cd533e58d78584311f1966a.zip | |
Clarify how gzopen() appends in zlib.h comments.
| -rw-r--r-- | zlib.h | 7 |
1 files changed, 7 insertions, 0 deletions
| @@ -1201,6 +1201,13 @@ ZEXTERN gzFile ZEXPORT gzopen OF((const char *path, const char *mode)); | |||
| 1201 | written be appended to the file. "+" will result in an error, since reading | 1201 | written be appended to the file. "+" will result in an error, since reading |
| 1202 | and writing to the same gzip file is not supported. | 1202 | and writing to the same gzip file is not supported. |
| 1203 | 1203 | ||
| 1204 | These functions, as well as gzip, will read and decode a sequence of gzip | ||
| 1205 | streams in a file. The append function of gzopen() can be used to create | ||
| 1206 | such a file. (Also see gzflush() for another way to do this.) When | ||
| 1207 | appending, gzopen does not test whether the file begins with a gzip stream, | ||
| 1208 | nor does it look for the end of the gzip streams to begin appending. gzopen | ||
| 1209 | will simply append a gzip stream to the existing file. | ||
| 1210 | |||
| 1204 | gzopen can be used to read a file which is not in gzip format; in this | 1211 | gzopen can be used to read a file which is not in gzip format; in this |
| 1205 | case gzread will directly read from the file without decompression. | 1212 | case gzread will directly read from the file without decompression. |
| 1206 | 1213 | ||
