For Programmers: Free Programming Magazines  


Home > Archive > Compression > July 2006 > Data compression API on Aix









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Data compression API on Aix
MP

2006-07-27, 3:55 am

Hi,
Is there a data compression API available as programmers interface in
Aix ?
I would like to know if there is something available native and NOT
open system offering like zlib's gzwrite() etc. I would like to do
some file compression in a simple c program but dont want to use zlib.
Pls help
Manoj

jasen

2006-07-28, 3:55 am

On 2006-07-27, MP <manoj.patil.1974@gmail.com> wrote:
> Hi,
> Is there a data compression API available as programmers interface in
> Aix ?
> I would like to know if there is something available native and NOT
> open system offering like zlib's gzwrite() etc. I would like to do
> some file compression in a simple c program but dont want to use zlib.


I can't see any reason to avoid zlib, but anyway how about this:

FILE* wstream = popen("/usr/bin/compress > somefile","wb");

:)


--

Bye.
Jasen
A Marlow

2006-07-28, 6:55 pm

On Thu, 27 Jul 2006 00:37:53 -0700, MP wrote:

> Hi,
> Is there a data compression API available as programmers interface in
> Aix ?
> I would like to know if there is something available native and NOT
> open system offering like zlib's gzwrite() etc.


If I knew of a compression library that was for AIX and refused to work
anywhere else I would not tell anyone, neither would I ever use it. I
would go for an open source library that has been ported to the known
universe. Like gzip for example. Bzip2 is another library you might want
to consider. It depends what you want to compress. zlib is a good general
purpose compressor; gzip tends to compress ASCII well, bzip2 compresses
ASCII better but tends to be more CPU-intensive. As usual these are wild
generalisation; what you get depends very much on the data you have.

-Andrew M.


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com