You may want to check the open source widely used library ZLIB.
The link provides sample code and the home page provides more information about the libraries, source code, installation and usage.
Minizip, which is included with zlib is what you need. Look in the 'contribs' directory for the code. There is an example for zip/unzip and is easily included in a project.