library for manipulating zip archives

libzip (-lzip)

#include <zip.h>

libzip is a library for reading, creating, and modifying zip archives.

The main design criteria for libzip were:

  • Do not create corrupt files, even in case of errors.
  • Do not delete data.
  • Be efficient.

For this reason, when modifying zip archives, libzip writes to a temporary file and replaces the original zip archive atomically.

Below there are two sections listing functions: one for how to read from zip archives and one for how to create/modify them.

Dieter Baron <> and Thomas Klausner <>