Ended up using libzip, and a fantastic example of how to use the library by Mobius https://gist.github.com/mobius/1759816
Library to unzip archive in C on osx
문제
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
다른 팁
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.
제휴하지 않습니다 StackOverflow