Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The best zip library with public domain license [closed]

Tags:

c++

c

zip

Does anyone know zip library of C/C++ in public domain license?

It meets the following requirements.

  1. It operates by the unit like stb_image.c library
  2. Supported cross platform. Windows, Mac, Linux and so on.
  3. Language is C/C++
  4. License is public domain.
like image 506
Shiva Avatar asked Jul 10 '10 19:07

Shiva


3 Answers

I'd recommend ZipLib.

Personal reasons why I love this project:

  • built around c++11 stl streams (e.g. decompresses into STL streams!)
  • lightweight (no dependencies other than zlib)
  • can be used on both windows & linux

It took me a long time to find this project -- hope this helps someone.

like image 92
dk123 Avatar answered Oct 16 '22 09:10

dk123


It didn't yet exist when the question was asked. But it does now: miniz - public domain, single C file, explicitly inspired by the likes of stb_image.

like image 33
RobDangerous Avatar answered Oct 16 '22 10:10

RobDangerous


The most popular open source zip implementation is Info-Zip. Deflate algorithm used in zip file format is implemented by zlib library. Both are released on liberal, BSD-like license, but not public domain.

like image 11
el.pescado - нет войне Avatar answered Oct 16 '22 09:10

el.pescado - нет войне