ZIP_DISCARD(3) Library Functions Manual ZIP_DISCARD(3)

close zip archive and discard changes

libzip (-lzip)

#include <zip.h>

zip_discard(zip_t *archive);

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.

libzip(3), zip_close(3)

zip_discard() was added in libzip 0.11.

Dieter Baron <> and Thomas Klausner <>
December 18, 2017 NetBSD 8.99.35