Linux Standard Base Core Specification 4.0 | ||
---|---|---|
<<< Previous | Next >>> |
The gzwrite() function shall write data to the compressed file referenced by file, which shall have been opened in a write mode (see gzopen() and gzdopen()). On entry, buf shall point to a buffer containing len bytes of uncompressed data. The gzwrite() function shall compress this data and write it to file. The gzwrite() function shall return the number of uncompressed bytes actually written.
On success, gzwrite() shall return the number of
uncompressed bytes actually written to file.
On error gzwrite() shall return a value
less than or equal to 0
.
Applications may examine the cause using gzerror().
On error, gzwrite() shall set the error number associated with the stream identified by file to indicate the error. Applications should use gzerror() to access this error value.
<<< Previous | Home | Next >>> |
gztell | Up | inflate |