سؤال

I have been using zlib to inflate some .gz and zip files. The issue is that now I wish to inflate .zip archives but my research and trial and error seems to tell me that zlib cannot do this? If so what other libraries could I used because at the moment I can only find minizip and lzma but both libraries only support Windows.(The best option would be one I can port cross platform).

Thanks Sam

هل كانت مفيدة؟

المحلول 3

Ended up using libzip, and a fantastic example of how to use the library by Mobius https://gist.github.com/mobius/1759816

نصائح أخرى

You can look into POCO libraries. They have support for OS X as well.

You can use libarchive, which is available both in MacPorts and Homebrew.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top