|
NAMEzip_close —
close zip archive
LIBRARYlibzip (-lzip)SYNOPSIS#include <zip.h>
int
DESCRIPTIONThezip_close () function writes any changes made to
archive to disk. If archive
contains no files, the file is completely removed (no empty archive is
written). If successful, archive is freed. Otherwise
archive is left unchanged and must still be freed.
To close and free a zip archive without saving changes, use zip_discard(3). RETURN VALUESUpon successful completion 0 is returned. Otherwise, -1 is returned and the error code in archive is set to indicate the error.ERRORSzip_close () will fail if:
SEE ALSOlibzip(3), zip_discard(3), zip_fdopen(3), zip_get_error(3), zip_open(3), zip_register_progress_callback_with_state(3), zip_strerror(3)HISTORYzip_close () was added in libzip 0.6.
AUTHORSDieter Baron <dillo@nih.at> and Thomas Klausner <tk@giga.or.at>
Visit the GSP FreeBSD Man Page Interface. |