undo global changes to zip archive

libzip (-lzip)

#include <zip.h>

zip_unchange_archive(zip_t *archive);

Revert all global changes to the archive archive. This reverts changes to the archive comment and global flags.

Upon successful completion 0 is returned. Otherwise, -1 is returned and the error code in archive is set to indicate the error.

libzip(3), zip_unchange(3), zip_unchange_all(3)

zip_unchange_archive() was added in libzip 0.7.

Dieter Baron <> and Thomas Klausner <>