Reputation: 33036
I am reading through the document of zlib, and it is fairly detail. But I read upon this line:
The output data will be in the zlib format, which is different from the gzip or zip formats
http://www.zlib.net/zlib_how.html
It seems that zlib creates zlib format which is not the same as zip format as is discussed in this SO:
How are zlib, gzip and zip related? What do they have in common and how are they different?
Any body know whether it is possible to create zip format with zlib? and how?
Upvotes: 5
Views: 13914
Reputation: 1072
As @Jongware mentioned, you can find an example in the contrib/minizip
folder of the source code library.
OR !
You can simply use libzip.
Possible duplicate: Simple way to unzip a .zip file using zlib
Upvotes: 5