zip_discard(3)

zip_discard3

Close zip archive and discard changes

Usage

#include <zip.h>

void

zip_discard(zip_t *archive);

Library

libzip (-lzip)

Overview

The zip_discard() function closes archive and frees the memory allocated for it. Any changes to the archive are not written to disk and discarded.

Releases

7 releases since Debian 8 (Jessie); the text changed 3 times.

  1. 8
  2. 9
  3. 10–12
  4. 13–Arch

History

zip_discard() was added in libzip 0.11.

Authors

Dieter Baron ⟨[email protected]⟩ and Thomas Klausner ⟨[email protected]⟩

From libzip 1.11.4-1 in Arch Linux 2026-11-01. Parsed by carta from the page's mdoc source.