views:

307

answers:

2

Can someone point me to a public domain (or MIT- or BSD-license) library for decompressing .Z files in ANSI C?

Thanks!

+1  A: 

There's a public domain version on sourceforge: ncompress

Edit: liblzw (DrJokepu's suggestion) and ncompress share the same developer and codebase, so stick with liblzw...

Christoph
+1  A: 

Sorry I was talking rubbish in my previous response. Apparently unix compressed files (.Z) use LZW, not Deflate.

In this case, check out liblzw. It is public domain.

DrJokepu
Thanks! Looks like that'll work.
Ben Alpert