Hello All,
I need some C/C++ code/calls to unzip a zip file.

Please share the code/guidence.

Thanks in advance,
Hafeez Shaik.

Re: Need some C/C++ code to unzip a zip file. 80 80

Have you tried anything, or done any research at all? You'll notice that this is a C++ help forum, not a get-your-work-done-for-you forum.

Re: Need some C/C++ code to unzip a zip file. 80 80
Member Avatar

Perhaps, you would need to do some research and you you need a library. Here're few links

http://www.zlib.net
http://www.info-zip.org/

You could also use Google or for any other OpenSource library over here.

commented: like those links! +18
Re: Need some C/C++ code to unzip a zip file. 80 80

Or you could pay lots of $$$ for Pkware library, who is the original author of the zip file format.

Re: Need some C/C++ code to unzip a zip file. 80 80

I think you may create a temporary named pipe in the C program itself and then pass the named pipe in the place of FILE* descriptor in your program.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.18 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.