| .TH "ZIP_FILE_SET_COMMENT" "3" "September 19, 2013" "NiH" "Library Functions Manual" |
| \fBzip_file_set_comment\fR |
| \- set comment for file in zip |
| \fBzip_file_set_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); |
| \fBzip_file_set_comment\fR() |
| function sets the comment for the file at position |
| is 0, the file comment will be removed. |
| as code page 437 (CP-437). |
| Upon successful completion 0 is returned. |
| Otherwise, \-1 is returned and the error information in |
| is set to indicate the error. |
| \fBzip_file_set_comment\fR() |
| is not a valid file index in |
| is less than 0 or longer than the maximum comment length in a zip file |
| is not a valid UTF-8 encoded string. |
| Required memory could not be allocated. |
| was opened in read-only mode. |
| zip_get_archive_comment(3), |
| zip_set_archive_comment(3) |
| Dieter Baron <\fIdillo@nih.at\fR> |
| Thomas Klausner <\fItk@giga.or.at\fR> |