From: Damian Yerrick Newsgroups: comp.os.msdos.djgpp Subject: Re: Need HELP with the ZLIB !!! Organization: Pin Eight Software http://pineight.8m.com/ Message-ID: References: <8dcpbo$b32$2 AT news00 DOT btx DOT dtag DOT de> X-Newsreader: Forte Agent 1.7/32.534 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 42 X-Trace: +r9wQy+wHPscDQ78ysiVpJJYj+gIA9pduEdH0GUfEmMxcmV8gL9/iUgCvCYXCPNR4LVqxkoLCTwK!T4+Q9hB26l3h7h5ujVOpjhups9x2dOZhtNQQaEz4oaJdeF/+glr1GTcJGWFoHj8ViZKY4FBm7Yri!ZWKmNEs= X-Complaints-To: abuse AT gte DOT net X-Abuse-Info: Please be sure to forward a copy of ALL headers X-Abuse-Info: Otherwise we will be unable to process your complaint properly NNTP-Posting-Date: Sun, 16 Apr 2000 17:15:56 GMT Distribution: world Date: Sun, 16 Apr 2000 17:15:56 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com On Sun, 16 Apr 2000 18:17:01 +0200, "Torsten Giebl" wrote: >Hello Freaks !!! >---------------- > > >I need help with the ZLIB Library !! > >Can anybody code a Function and offers the Sourcecode in this Forum ?? > >The one function should be: > >int GZFileTONFile (char *gzf, char *nf) >{ > >} > >This function unpacks decompresses the GZFile ! > >The other function should be ( if ZLIB supports also Compressing ??? ) > >int NFileTOGZFile (char *gzf, char *nf) >{ > >} > >This function packs a file to a GZFile ! > >The two should give back a 0 if everything was okay and another Number if an >Error occurs. IIRC, the zlib distribution includes a clone of gzip. Cannibalize its source and turn it into a function. -- Damian Yerrick "I refuse to listen to those who refuse to listen to reason." See the whole sig: http://www.rose-hulman.edu/~yerricde/sig.html This is McAfee VirusScan. Add these two lines to your signature to prevent the spread of signature viruses. http://www.mcafee.com/