kusano fc6ab3
.TH ZLIB 3 "28 Apr 2013"
kusano fc6ab3
.SH NAME
kusano fc6ab3
zlib \- compression/decompression library
kusano fc6ab3
.SH SYNOPSIS
kusano fc6ab3
[see
kusano fc6ab3
.I zlib.h
kusano fc6ab3
for full description]
kusano fc6ab3
.SH DESCRIPTION
kusano fc6ab3
The
kusano fc6ab3
.I zlib
kusano fc6ab3
library is a general purpose data compression library.
kusano fc6ab3
The code is thread safe, assuming that the standard library functions
kusano fc6ab3
used are thread safe, such as memory allocation routines.
kusano fc6ab3
It provides in-memory compression and decompression functions,
kusano fc6ab3
including integrity checks of the uncompressed data.
kusano fc6ab3
This version of the library supports only one compression method (deflation)
kusano fc6ab3
but other algorithms may be added later
kusano fc6ab3
with the same stream interface.
kusano fc6ab3
.LP
kusano fc6ab3
Compression can be done in a single step if the buffers are large enough
kusano fc6ab3
or can be done by repeated calls of the compression function.
kusano fc6ab3
In the latter case,
kusano fc6ab3
the application must provide more input and/or consume the output
kusano fc6ab3
(providing more output space) before each call.
kusano fc6ab3
.LP
kusano fc6ab3
The library also supports reading and writing files in
kusano fc6ab3
.IR gzip (1)
kusano fc6ab3
(.gz) format
kusano fc6ab3
with an interface similar to that of stdio.
kusano fc6ab3
.LP
kusano fc6ab3
The library does not install any signal handler.
kusano fc6ab3
The decoder checks the consistency of the compressed data,
kusano fc6ab3
so the library should never crash even in the case of corrupted input.
kusano fc6ab3
.LP
kusano fc6ab3
All functions of the compression library are documented in the file
kusano fc6ab3
.IR zlib.h .
kusano fc6ab3
The distribution source includes examples of use of the library
kusano fc6ab3
in the files
kusano fc6ab3
.I test/example.c
kusano fc6ab3
and
kusano fc6ab3
.IR test/minigzip.c,
kusano fc6ab3
as well as other examples in the
kusano fc6ab3
.IR examples/
kusano fc6ab3
directory.
kusano fc6ab3
.LP
kusano fc6ab3
Changes to this version are documented in the file
kusano fc6ab3
.I ChangeLog
kusano fc6ab3
that accompanies the source.
kusano fc6ab3
.LP
kusano fc6ab3
.I zlib
kusano fc6ab3
is available in Java using the java.util.zip package:
kusano fc6ab3
.IP
kusano fc6ab3
http://java.sun.com/developer/technicalArticles/Programming/compression/
kusano fc6ab3
.LP
kusano fc6ab3
A Perl interface to
kusano fc6ab3
.IR zlib ,
kusano fc6ab3
written by Paul Marquess (pmqs@cpan.org),
kusano fc6ab3
is available at CPAN (Comprehensive Perl Archive Network) sites,
kusano fc6ab3
including:
kusano fc6ab3
.IP
kusano fc6ab3
http://search.cpan.org/~pmqs/IO-Compress-Zlib/
kusano fc6ab3
.LP
kusano fc6ab3
A Python interface to
kusano fc6ab3
.IR zlib ,
kusano fc6ab3
written by A.M. Kuchling (amk@magnet.com),
kusano fc6ab3
is available in Python 1.5 and later versions:
kusano fc6ab3
.IP
kusano fc6ab3
http://docs.python.org/library/zlib.html
kusano fc6ab3
.LP
kusano fc6ab3
.I zlib
kusano fc6ab3
is built into
kusano fc6ab3
.IR tcl:
kusano fc6ab3
.IP
kusano fc6ab3
http://wiki.tcl.tk/4610
kusano fc6ab3
.LP
kusano fc6ab3
An experimental package to read and write files in .zip format,
kusano fc6ab3
written on top of
kusano fc6ab3
.I zlib
kusano fc6ab3
by Gilles Vollant (info@winimage.com),
kusano fc6ab3
is available at:
kusano fc6ab3
.IP
kusano fc6ab3
http://www.winimage.com/zLibDll/minizip.html
kusano fc6ab3
and also in the
kusano fc6ab3
.I contrib/minizip
kusano fc6ab3
directory of the main
kusano fc6ab3
.I zlib
kusano fc6ab3
source distribution.
kusano fc6ab3
.SH "SEE ALSO"
kusano fc6ab3
The
kusano fc6ab3
.I zlib
kusano fc6ab3
web site can be found at:
kusano fc6ab3
.IP
kusano fc6ab3
http://zlib.net/
kusano fc6ab3
.LP
kusano fc6ab3
The data format used by the zlib library is described by RFC
kusano fc6ab3
(Request for Comments) 1950 to 1952 in the files:
kusano fc6ab3
.IP
kusano fc6ab3
http://tools.ietf.org/html/rfc1950 (for the zlib header and trailer format)
kusano fc6ab3
.br
kusano fc6ab3
http://tools.ietf.org/html/rfc1951 (for the deflate compressed data format)
kusano fc6ab3
.br
kusano fc6ab3
http://tools.ietf.org/html/rfc1952 (for the gzip header and trailer format)
kusano fc6ab3
.LP
kusano fc6ab3
Mark Nelson wrote an article about
kusano fc6ab3
.I zlib
kusano fc6ab3
for the Jan. 1997 issue of  Dr. Dobb's Journal;
kusano fc6ab3
a copy of the article is available at:
kusano fc6ab3
.IP
kusano fc6ab3
http://marknelson.us/1997/01/01/zlib-engine/
kusano fc6ab3
.SH "REPORTING PROBLEMS"
kusano fc6ab3
Before reporting a problem,
kusano fc6ab3
please check the
kusano fc6ab3
.I zlib
kusano fc6ab3
web site to verify that you have the latest version of
kusano fc6ab3
.IR zlib ;
kusano fc6ab3
otherwise,
kusano fc6ab3
obtain the latest version and see if the problem still exists.
kusano fc6ab3
Please read the
kusano fc6ab3
.I zlib
kusano fc6ab3
FAQ at:
kusano fc6ab3
.IP
kusano fc6ab3
http://zlib.net/zlib_faq.html
kusano fc6ab3
.LP
kusano fc6ab3
before asking for help.
kusano fc6ab3
Send questions and/or comments to zlib@gzip.org,
kusano fc6ab3
or (for the Windows DLL version) to Gilles Vollant (info@winimage.com).
kusano fc6ab3
.SH AUTHORS
kusano fc6ab3
Version 1.2.8
kusano fc6ab3
Copyright (C) 1995-2013 Jean-loup Gailly (jloup@gzip.org)
kusano fc6ab3
and Mark Adler (madler@alumni.caltech.edu).
kusano fc6ab3
.LP
kusano fc6ab3
This software is provided "as-is,"
kusano fc6ab3
without any express or implied warranty.
kusano fc6ab3
In no event will the authors be held liable for any damages
kusano fc6ab3
arising from the use of this software.
kusano fc6ab3
See the distribution directory with respect to requirements
kusano fc6ab3
governing redistribution.
kusano fc6ab3
The deflate format used by
kusano fc6ab3
.I zlib
kusano fc6ab3
was defined by Phil Katz.
kusano fc6ab3
The deflate and
kusano fc6ab3
.I zlib
kusano fc6ab3
specifications were written by L. Peter Deutsch.
kusano fc6ab3
Thanks to all the people who reported problems and suggested various
kusano fc6ab3
improvements in
kusano fc6ab3
.IR zlib ;
kusano fc6ab3
who are too numerous to cite here.
kusano fc6ab3
.LP
kusano fc6ab3
UNIX manual page by R. P. C. Rodgers,
kusano fc6ab3
U.S. National Library of Medicine (rodgers@nlm.nih.gov).
kusano fc6ab3
.\" end of man page