| ZIP_CLOSE(3) | Library Functions Manual | ZIP_CLOSE(3) | 
zip_close —
#include <zip.h>
int
  
  zip_close(zip_t
    *archive);
zip_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).
zip_close() will fail if:
ZIP_ER_EOF]ZIP_ER_INTERNAL]ZIP_ER_INVAL]NULL.ZIP_ER_MEMORY]ZIP_ER_NOZIP]ZIP_ER_READ]ZIP_ER_RENAME]ZIP_ER_SEEK]ZIP_ER_TMPOPEN]ZIP_ER_WRITE]ZIP_ER_ZLIB]zip_close() was added in libzip 0.6.
| September 17, 2019 | NetBSD 9.99.41 |