gpt4 book ai didi

c - 如何使用 zlib 制作 .zip 文件

转载 作者:行者123 更新时间:2023-12-03 23:23:45 33 4
gpt4 key购买 nike

我正在阅读 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 格式与 不同 zip 此 SO 中讨论的格式:

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

关于c - 如何使用 zlib 制作 .zip 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33506713/

33 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com