gzip library (compressing a buffer in C)

Chuck Swiger cswiger at mac.com
Mon Jul 7 11:28:27 PDT 2003


Chris Ptacek wrote:
> Does anyone know if there is a library available to allow a C program to
> gzip a buffer.  Basically I have a buffer of data that I will be transfering
> and would like to gzip it before sending. The receiving system already does
> a gunzip and I am trying to handle the same format, so other compression may
> not be available.

Absolutely: see /usr/lib/libz.a

-- 
-Chuck



More information about the freebsd-questions mailing list