summaryrefslogtreecommitdiff
path: root/zlib.h
diff options
context:
space:
mode:
Diffstat (limited to 'zlib.h')
-rw-r--r--zlib.h22
1 files changed, 14 insertions, 8 deletions
diff --git a/zlib.h b/zlib.h
index 0bd83e9..e1cfd0e 100644
--- a/zlib.h
+++ b/zlib.h
@@ -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 @@
37extern "C" { 37extern "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
1281ZEXTERN char * ZEXPORT gzgets OF((gzFile file, char *buf, int len)); 1281ZEXTERN 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
1291ZEXTERN int ZEXPORT gzputc OF((gzFile file, int c)); 1294ZEXTERN 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
1446ZEXTERN void ZEXPORT gzclearerr OF((gzFile file)); 1452ZEXTERN void ZEXPORT gzclearerr OF((gzFile file));