Minimalistic unzip library released into public domain.
Written by Joonas Pihlajamaa ([email protected]). For details about this project, see:
http://codeandlife.com/2014/01/01/unzip-library-for-c/
The codebase is very lean and should be easy to understand, and port to any system. Compiling the example on most systems with zlib installed:
gcc junzip_demo.c junzip.c -lz -o junzip
On Windows, MinGW requires -mno-ms-bitfields compilation flags, so you may want to use the supplied Makefile and run "make" instead. A simple test suite is also available with "make test" (checks struct sizes).