Is there a cross-platform gzip processor library for C or C ++?

I need a library (API) to open, search, read, write ... (in one word for processing ) gzip files. Are there any open source cross-platform for C or C ++?

+8
c ++ c open-source gzip
source share
3 answers

Yes. Zlib is the one.

There is also this related question about how it is easier and more convenient to process gzip files in C ++. The most notable and modern offer is the GZip filters in Boost.IOStreams , which I have a good experience with myself.

+10
source share

Yes, of course, zlib is the base library and has additional bindings of other languages ​​listed on the web page, for example, gzstream , providing a C ++ wrapper to gz* functions.

zlib , being a C library, is also extremely portable and cross-platform. See the webpage for links to Solaris, SCO, BeOS, MaxOS, OS / 2 (!!), Palm Pilot, Newton (!!), Windows CE (!!), Blackberry, Windows, .Net, .. ..

+5
source share

If you are interested in Boost magic, check out Boost stream filters that can be arbitrarily combined and cascaded; There is built-in support for gzip, DEFLATE (which is GZip minus the header) and bzip2. Very comfortably.

+2
source share

All Articles