Mail Archives: djgpp/1997/08/12/18:51:12
Christian Granström wrote:
>
> Is there a free library/sourcecode available for
> uncompressing gziped or any compressed file format???
>
> I want simple stuff, like: uncompress(source, destination);
> Nothing where I have to Include half my harddrive
> and link about 100 libs, I hate that kind of stuff.
If you want to create your own file format, the zlib compression library
may be what you want. It uses the same algorithm as gzip/zip (deflate)
and has what looks like a simple interface (I've never used it). It
works on memory buffers, so file I/O and file formats would be up to
you.
The first link describes a c++ class for zlib which does almost exactly
what you want, only with no particular file format.
http://web2.airmail.net/markn/articles/zlibtool/zlibtool.htm
http://www.cdrom.com/pub/infozip/pub/zlib/
Jim
- Raw text -