1 .TH "ZIP_FILE_SET_COMMENT" "3" "September 19, 2013" "NiH" "Library Functions Manual"
5 \fBzip_file_set_comment\fR
6 \- set comment for file in zip
10 \fB#include <zip.h>\fR
15 \fBzip_set_file_comment\fR(\fIzip_t\ *archive\fR, \fIzip_uint64_t\ index\fR, \fIconst\ char\ *comment\fR, \fIzip_uint16_t\ len\fR, \fIzip_flags_t\ flags\fR);
19 \fBzip_file_set_comment\fR()
20 function sets the comment for the file at position
32 is 0, the file comment will be removed.
35 argument can be any of:
37 \fRZIP_FL_ENC_GUESS\fR
42 \fRZIP_FL_ENC_UTF_8\fR
47 \fRZIP_FL_ENC_CP437\fR
50 as code page 437 (CP-437).
52 Upon successful completion 0 is returned.
53 Otherwise, \-1 is returned and the error information in
55 is set to indicate the error.
57 \fBzip_file_set_comment\fR()
62 is not a valid file index in
66 is less than 0 or longer than the maximum comment length in a zip file
69 is not a valid UTF-8 encoded string.
72 Required memory could not be allocated.
77 was opened in read-only mode.
80 zip_file_get_comment(3),
81 zip_get_archive_comment(3),
82 zip_set_archive_comment(3)
84 Dieter Baron <\fIdillo@nih.at\fR>
86 Thomas Klausner <\fItk@giga.or.at\fR>