diff options
author | Mark Adler <madler@alumni.caltech.edu> | 2011-10-23 12:25:55 -0700 |
---|---|---|
committer | Mark Adler <madler@alumni.caltech.edu> | 2011-10-23 12:25:55 -0700 |
commit | e8576790be06e976ba739a14d17480fd6709ee70 (patch) | |
tree | 2dc65e7cb42ba8ca0494cdf71444c17d97bac76d | |
parent | 6dbf1d10263dbf2f49d12d788f89ab308ba4ca6d (diff) | |
download | zlib-e8576790be06e976ba739a14d17480fd6709ee70.tar.gz zlib-e8576790be06e976ba739a14d17480fd6709ee70.tar.bz2 zlib-e8576790be06e976ba739a14d17480fd6709ee70.zip |
Note behavior of uncompress() to provide as much data as it can.
-rw-r--r-- | zlib.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1174,7 +1174,9 @@ ZEXTERN int ZEXPORT uncompress OF((Bytef *dest, uLongf *destLen, | |||
1174 | 1174 | ||
1175 | uncompress returns Z_OK if success, Z_MEM_ERROR if there was not | 1175 | uncompress returns Z_OK if success, Z_MEM_ERROR if there was not |
1176 | enough memory, Z_BUF_ERROR if there was not enough room in the output | 1176 | enough memory, Z_BUF_ERROR if there was not enough room in the output |
1177 | buffer, or Z_DATA_ERROR if the input data was corrupted or incomplete. | 1177 | buffer, or Z_DATA_ERROR if the input data was corrupted or incomplete. In |
1178 | the case where there is not enough room, uncompress() will fill the output | ||
1179 | buffer with the uncompressed data up to that point. | ||
1178 | */ | 1180 | */ |
1179 | 1181 | ||
1180 | /* gzip file access functions */ | 1182 | /* gzip file access functions */ |