tags:

views:

241

answers:

3

I'm looking for a C/C++ library that can open and read the contents of zipfiles (writing zipfiles isn't a strict requirement but would be nice).

I want to be able to open a file, enumerate the files and then efficient read (unencrypted) data from the files in the zipfile.

All the libraries I've found are all very WIN32 specific. I need something that can run on Mac OS X or iPhone (PPC, X86 or 64-bit).

I'm not worried about Zip64 (although again, that would be nice)

Edit: Please don't suggest zlib. Zlib is a library for compressing/decompressing zipped data. It doesn't know anything about actual zipfiles.

A: 

how about zlib.

bhups
Same response as above: Zlib doesn't actually process zipfiles. It just handles the compression/decompression of zipped streams.
schwa
However the zlib downlaod includes mini-zip which does
Martin Beckett
A: 

Check out these guys: http://www.info-zip.org/

They make the unzip utility on linux, I'm pretty sure you could use their codebase for your projects.

static_rtti
+2  A: 

Would this do? Minizip? Or even 7-zip?

Hope this helps, Best regards, Tom.

tommieb75