We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
The community reviewed whether to reopen this question 9 months ago and left it closed:
Original close reason(s) were not resolved
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(2)
通过 Google 快速搜索即可发现 Chilkat C/C++ TAR 库。此处提供了其使用示例:Chilkat C++ 示例:创建 TAR 存档
另一个可能的选项是 libtar (但请注意,它是一个 C 库)。
当然,您可以阅读 TAR 文件规范(您需要的所有内容都通过 链接维基百科)并实现您自己的库。看起来有人已经在这里做过了,有可用的来源。
A quick Google search uncovers the Chilkat C/C++ TAR Library. A sample of its use is available here: Chilkat C++ Examples: Create TAR Archive
Another possible option is libtar (note, however, that it is a C library).
And, of course, you could read the TAR file spec (all of what you need is linked through Wikipedia) and implement your own library. It looks like someone has already done that here, with the source available.
libtar 有一个用于 GNU tar 的 C API。
libtar has a C API for GNU tar.