libzip

From Wikipedia, the free encyclopedia
Jump to: navigation, search
libzip
Developer(s) Dieter Baron, Thomas Klausner
Stable release 0.11.2 / 19 December 2013; 6 months ago (2013-12-19)
Written in C
Operating system cross-platform
Type Programming Library, data compression
License BSD-like license
Website www.nih.at/libzip

libzip is an open source library for handling zip archives. It is written in portable C and can thus be used on multiple operating systems. It is based on zlib. It is used by PHP's zip extension for zip file support[1] and MySQL Workbench.[2] Between 2007 [3] and 2009[4] it was used by KDE's ark archiving tool for zip archive support.

Notable features[edit]

libzip supports reading and writing zip archives. In particular, it allows extracting single or multiple files and querying their attributes (including extra fields and comments). For writing, it allows replacing files or adding new ones; the data can come from buffers, files, or even other zip archives (without recompression). Extra field data and comments (both file and archive) can be added, modified, or deleted. All changes are finalized when closing the archive, so the on-disk archive is always self-consistent.

The zip64 extension for large files is also supported.

When opening existing archives, a strict consistency check can be requested.

libzip is written in C but can be used from C++.

See also[edit]

References[edit]

External links[edit]