delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/08/12/18:51:12

From: Stewart <slstewart AT infocom DOT net>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Compress/Uncompress library for djgpp???
Date: Tue, 12 Aug 1997 10:22:04 -0500
Organization: All USENET -- http://www.Supernews.com
Lines: 22
Message-ID: <33F07F9C.1ABE@infocom.net>
References: <33e4f73c DOT 2730640 AT news DOT algonet DOT se>
NNTP-Posting-Host: 6542 AT 207 DOT 170 DOT 89 DOT 131
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019