1 .TH "ZIP_CLOSE" "3" "February 13, 2012" "NiH" "Library Functions Manual"
10 \fB#include <zip.h>\fR
15 \fBzip_close\fR(\fIzip_t\ *archive\fR);
22 and frees the memory allocated for it.
23 If any files within were changed, those changes are written to disk
25 If writing changes fails,
32 contains no files, the file is completely removed (no empty archive is
35 To close a zip file without saving changes, use
38 Upon successful completion 0 is returned.
39 Otherwise, \-1 is returned and the error code in
41 is set to indicate the error.
47 Unexpected end-of-file found while reading from a file.
49 [\fRZIP_ER_INTERNAL\fR]
50 The callback function of an added or replaced file returned an
51 error but failed to report which.
60 Required memory could not be allocated.
63 File is not a zip archive.
69 A temporary file could not be renamed to its final name.
74 [\fRZIP_ER_TMPOPEN\fR]
75 A temporary file could not be created.
81 An error occurred while (de)compressing a stream with
85 Additionally, any errors returned by the callback function
86 for added or replaced files will be passed back.
96 Dieter Baron <\fIdillo@nih.at\fR>
98 Thomas Klausner <\fItk@giga.or.at\fR>