1 .TH "ZIP_SET_ARCHIVE_COMMENT" "3" "July 22, 2012" "NiH" "Library Functions Manual"
5 \fBzip_set_archive_comment\fR
6 \- set zip archive comment
10 \fB#include <zip.h>\fR
15 \fBzip_set_archive_comment\fR(\fIzip_t\ *archive\fR, \fIconst\ char\ *comment\fR, \fIzip_uint16_t\ len\fR);
19 \fBzip_set_archive_comment\fR()
20 function sets the comment for the entire zip archive.
27 is 0, the archive comment will be removed.
29 must be encoded in ASCII or UTF-8.
31 Upon successful completion 0 is returned.
32 Otherwise, \-1 is returned and the error information in
34 is set to indicate the error.
36 \fBzip_set_archive_comment\fR()
41 is less than 0 or longer than the maximum comment length in a zip file
44 is not a valid UTF-8 encoded string.
47 Required memory could not be allocated.
50 zip_get_archive_comment(3),
51 zip_get_file_comment(3),
52 zip_set_file_comment(3)
54 Dieter Baron <\fIdillo@nih.at\fR>
56 Thomas Klausner <\fItk@giga.or.at\fR>