libzip(3) library for manipulating zip archives

LIBRARY

libzip (-lzip)

SYNOPSIS

#include <zip.h>

DESCRIPTION

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.

READING ZIP ARCHIVES

open archive

zip_open(3) zip_fdopen(3)

find files

zip_name_locate(3)

close archive

zip_close(3) zip_discard(3)

CREATING/MODIFYING ZIP ARCHIVES

create/open archive

zip_open(3)

rename files

zip_rename(3)

delete files

zip_delete(3)

close archive

zip_close(3)

AUTHORS

Dieter Baron <[email protected]> and Thomas Klausner <[email protected]>