如何使用 zlib 制作 .zip 文件
How to make a .zip file using zlib
我正在看zlib的文档,比较详细。但我读到这一行:
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
zlib 似乎创建了 zlib 格式,它与本 SO 中讨论的 zip 格式不同:
How are zlib, gzip and zip related? What do they have in common and how are they different?
有人知道是否可以使用 zlib 创建 zip 格式吗?如何?
如@Jongware所述,您可以在源代码库的contrib/minizip
文件夹中找到示例。
或 !
您可以简单地使用 libzip。
可能重复:Simple way to unzip a .zip file using zlib
我正在看zlib的文档,比较详细。但我读到这一行:
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
zlib 似乎创建了 zlib 格式,它与本 SO 中讨论的 zip 格式不同:
How are zlib, gzip and zip related? What do they have in common and how are they different?
有人知道是否可以使用 zlib 创建 zip 格式吗?如何?
如@Jongware所述,您可以在源代码库的contrib/minizip
文件夹中找到示例。
或 !
您可以简单地使用 libzip。
可能重复:Simple way to unzip a .zip file using zlib