aboutsummaryrefslogtreecommitdiff
path: root/zlib.h
diff options
context:
space:
mode:
Diffstat (limited to 'zlib.h')
-rw-r--r--zlib.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/zlib.h b/zlib.h
index ff4469d..053e6e2 100644
--- a/zlib.h
+++ b/zlib.h
@@ -1427,6 +1427,20 @@ ZEXTERN int ZEXPORT gzwrite OF((gzFile file,
1427 error. 1427 error.
1428*/ 1428*/
1429 1429
1430ZEXTERN z_size_t ZEXPORT gzfwrite OF((voidpc buf, z_size_t size,
1431 z_size_t nitems, gzFile file));
1432/*
1433 gzfwrite() writes nitems items of size size from buf to file, duplicating
1434 the interface of stdio's fwrite(), with size_t request and return types. If
1435 the library defines size_t, then z_size_t is identical to size_t. If not,
1436 then z_size_t is an unsigned integer type that can contain a pointer.
1437
1438 gzfwrite() returns the number of full items written of size size, or zero
1439 if there was an error. If the multiplication of size and nitems overflows,
1440 i.e. the product does not fit in a z_size_t, then nothing is written, zero
1441 is returned, and the error state is set to Z_STREAM_ERROR.
1442*/
1443
1430ZEXTERN int ZEXPORTVA gzprintf Z_ARG((gzFile file, const char *format, ...)); 1444ZEXTERN int ZEXPORTVA gzprintf Z_ARG((gzFile file, const char *format, ...));
1431/* 1445/*
1432 Converts, formats, and writes the arguments to the compressed file under 1446 Converts, formats, and writes the arguments to the compressed file under