1 .TH "ZIP_FILE_GET_COMMENT" "3" "September 19, 2013" "NiH" "Library Functions Manual"
5 \fBzip_file_get_comment\fR
6 \- get comment for file in zip
10 \fB#include <zip.h>\fR
15 \fBzip_file_get_comment\fR(\fIzip_t\ *archive\fR, \fIzip_uint64_t\ index\fR, \fIzip_uint32_t\ *lenp\fR, \fIzip_flags_t\ flags\fR);
19 \fBzip_file_get_comment\fR()
20 function returns the comment for the file at position
23 The name is in UTF-8 encoding unless
25 was specified (see below).
26 This pointer should not be modified or
28 and becomes invalid when
35 the integer to which it points will be set to the length of the
40 \fRZIP_FL_UNCHANGED\fR,
41 the original unchanged comment is returned.
43 Additionally, the following
49 Return the unmodified comment as it is in the ZIP archive.
51 \fRZIP_FL_ENC_GUESS\fR
53 Guess the encoding of the comment in the ZIP archive and convert it
54 to UTF-8, if necessary.
56 \fRZIP_FL_ENC_STRICT\fR
57 Follow the ZIP specification for file names and extend it to file
58 comments, expecting them to be encoded in CP-437 in the ZIP archive
59 (except if it is a UTF-8 comment from the special extra field).
63 ASCII is a subset of both CP-437 and UTF-8.
65 Upon successful completion, a pointer to the comment is returned,
68 if there is no comment.
71 is returned and the error code in
73 is set to indicate the error.
75 \fBzip_file_get_comment\fR()
80 is not a valid file index in
84 zip_file_set_comment(3),
85 zip_get_archive_comment(3)
87 Dieter Baron <\fIdillo@nih.at\fR>
89 Thomas Klausner <\fItk@giga.or.at\fR>