Add gzip compression to a C or C++ application by linking against zlib and calling its compress and decompress functions.
Read and write .gz files in your program using zlib gzip-format support.
Implement deflate-format stream compression in a network protocol or file format following open RFC standards.
Builds with standard configure and make on Unix, Windows requires a separate build configuration included in the source.
zlib is a data compression library written in C. It has been in continuous use since 1995 and is one of the most widely distributed pieces of software in existence, built into operating systems, web browsers, file archivers, databases, and countless other programs. When software needs to make files smaller for storage or transmission, zlib is often the library doing that work behind the scenes. The library implements a compression format called deflate, which is also the basis of the gzip format used for .gz files and the zlib envelope format. These formats are defined in public internet standards documents (RFCs 1950, 1951, and 1952) rather than being proprietary, so data compressed with zlib can be read by any conforming implementation. zlib is designed to be used by developers as a component in their own software. It provides functions for compressing and decompressing data and is documented through a header file called zlib.h. The library comes with example programs and a test suite. It builds on most Unix-like systems with a standard configure and make process, and the source includes additional build configurations for Windows and other platforms. The library is thread-safe with some caveats noted in the FAQ. It does not include any third-party code and has been written entirely by Jean-loup Gailly and Mark Adler. Language interfaces exist for Python, Java, Perl, and Tcl, though those are maintained separately. zlib is free to use in any software, including commercial products, under a permissive license that does not require the usual open-source attribution to be included in the end product. The library's home page and FAQ are at zlib.net.
← madler on gitmyhub — every repo by this author, as a profile.
Verify against the repo before relying on details.