API in C for compress (.Z) ?

Hi all,

I would like to know if an API for compress (.Z) exists in C ?

I want to write a program which process a large number of data files with efficient compression at the end.

Thanks

Hi,

Take a look to 'zlib.h'

Regards,
Birei

Here is a how-to for zlib APIs: zlib Usage Example

Excuse me, but I forgot to tell you that it's for AIX :cool:

I want to compress files (.Z), and AIX uncompress command must be able to uncompress them.

---------- Post updated at 01:32 PM ---------- Previous update was at 11:12 AM ----------

Sorry fpmurphy for this double post :frowning:

I think that this post would be better in the C Forum that in the AIX one.

Just use C "exec" and call "compress" command :slight_smile: