Corne van Biljon wrote:
> 
> Hello
> 
> I would like to zip a file, specified by the user, from within a C
> program. Currently I use the system() command to invoke gzip. Is there a
> compression library or routenes out there somewhere, or is there a
> better way of doing this ?

Most program use system("gzip ..."), but there is a library called zlib
that implements both compression and uncompression. Documentation is in
/usr/include/zlib.h if you have it installed.

---
Henrik Nordström

Reply via email to