diff options
Diffstat (limited to 'zlib.h')
-rw-r--r-- | zlib.h | 22 |
1 files changed, 14 insertions, 8 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* zlib.h -- interface of the 'zlib' general purpose compression library | 1 | /* zlib.h -- interface of the 'zlib' general purpose compression library |
2 | version 1.2.3.8, Feb 13th, 2010 | 2 | version 1.2.3.9, Feb 21st, 2010 |
3 | 3 | ||
4 | Copyright (C) 1995-2010 Jean-loup Gailly and Mark Adler | 4 | Copyright (C) 1995-2010 Jean-loup Gailly and Mark Adler |
5 | 5 | ||
@@ -37,8 +37,8 @@ | |||
37 | extern "C" { | 37 | extern "C" { |
38 | #endif | 38 | #endif |
39 | 39 | ||
40 | #define ZLIB_VERSION "1.2.3.8" | 40 | #define ZLIB_VERSION "1.2.3.9" |
41 | #define ZLIB_VERNUM 0x1238 | 41 | #define ZLIB_VERNUM 0x1239 |
42 | #define ZLIB_VER_MAJOR 1 | 42 | #define ZLIB_VER_MAJOR 1 |
43 | #define ZLIB_VER_MINOR 2 | 43 | #define ZLIB_VER_MINOR 2 |
44 | #define ZLIB_VER_REVISION 3 | 44 | #define ZLIB_VER_REVISION 3 |
@@ -1280,12 +1280,15 @@ ZEXTERN int ZEXPORT gzputs OF((gzFile file, const char *s)); | |||
1280 | 1280 | ||
1281 | ZEXTERN char * ZEXPORT gzgets OF((gzFile file, char *buf, int len)); | 1281 | ZEXTERN char * ZEXPORT gzgets OF((gzFile file, char *buf, int len)); |
1282 | /* | 1282 | /* |
1283 | Reads bytes from the compressed file until len-1 characters are read, or | 1283 | Reads bytes from the compressed file until len-1 characters are read, or a |
1284 | a newline character is read and transferred to buf, or an end-of-file | 1284 | newline character is read and transferred to buf, or an end-of-file |
1285 | condition is encountered. The string is then terminated with a null | 1285 | condition is encountered. If any characters are read or if len == 1, the |
1286 | character. | 1286 | string is terminated with a null character. If no characters are read due |
1287 | to an end-of-file or len < 1, then the buffer is left untouched. | ||
1287 | 1288 | ||
1288 | gzgets returns buf, or NULL in case of error. | 1289 | gzgets returns buf which is a null-terminated string, or it returns NULL |
1290 | for end-of-file or in case of error. If there was an error, the contents at | ||
1291 | buf are indeterminate. | ||
1289 | */ | 1292 | */ |
1290 | 1293 | ||
1291 | ZEXTERN int ZEXPORT gzputc OF((gzFile file, int c)); | 1294 | ZEXTERN int ZEXPORT gzputc OF((gzFile file, int c)); |
@@ -1441,6 +1444,9 @@ ZEXTERN const char * ZEXPORT gzerror OF((gzFile file, int *errnum)); | |||
1441 | this function may invalidate the previously returned string. If file is | 1444 | this function may invalidate the previously returned string. If file is |
1442 | closed, then the string previously returned by gzerror will no longer be | 1445 | closed, then the string previously returned by gzerror will no longer be |
1443 | available. | 1446 | available. |
1447 | |||
1448 | gzerror() should be used to distinguish errors from end-of-file for those | ||
1449 | functions above that do not distinguish those cases in their return values. | ||
1444 | */ | 1450 | */ |
1445 | 1451 | ||
1446 | ZEXTERN void ZEXPORT gzclearerr OF((gzFile file)); | 1452 | ZEXTERN void ZEXPORT gzclearerr OF((gzFile file)); |