NAMEzip_unchange — undo changes to file in zip archive
SYNOPSIS#include <zip.h> int
zip_unchange(zip_t *archive, zip_uint64_t index);
DESCRIPTIONChanges to the file at position index are reverted.
RETURN VALUESUpon successful completion 0 is returned. Otherwise, -1 is returned and the error code in archive is set to indicate the error.
ERRORSzip_unchange() fails if:
- Unchanging the name would result in a duplicate name in the archive.
- index is not a valid file index in zip.