This is a first question on this StackExchange site, please let me know if my qu
ID: 660102 • Letter: T
Question
This is a first question on this StackExchange site, please let me know if my question is off-topic, and if so, which of the sites would be more appropriate.
I am looking for an API that can be used with ANSI C on a Windows 7 OS. I will use it to uncompress files created using WinZip, DynaZip, 7zip.
(I have observed that each of these seem to accommodate compression algorithms created by each other, i.e. 7zip opens/creates files that can be open/created by WinZip which can in turn be open/created by DynaZip)
So far I have tried to compile the offerings from 7zip and miniz using an ANSI C compiler in the LabWindows/CVI environment (C99 implementation), but ran into missing header files for both offerings. I have also looked at the Windows APIs in MSDN, but did not find anything there. Surprised at that, and wonder if I just was not looking in the right areas.
I suspect either of the offerings from 7zip or miniz would be perfect, except for the incomplete file distribution. Insights from others that have successfully built either of these APIs (in a Windows/C99 environment) would be helpful. Or if there is another approach completely, i.e. another API. Any help is appreciated.
Explanation / Answer
Perhaps libarchive is the answer, but I'm not sure if it's ANSI C. Though it's portable and works on most POSIX-like systems (including FreeBSD, Linux, Solaris, etc.) and supports Windows, including Cygwin, MinGW, and Visual Studio.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.