1 .TH "ZIP_GET_NAME" "3" "December 18, 2017" "NiH" "Library Functions Manual"
6 \- get name of file by index
10 \fB#include <zip.h>\fR
16 \fBzip_get_name\fR(\fIzip_t\ *archive\fR, \fIzip_uint64_t\ index\fR, \fIzip_flags_t\ flags\fR);
21 function returns the name of the file at position
25 The name is in UTF-8 encoding unless
27 was specified (see below).
32 \fRZIP_FL_UNCHANGED\fR,
33 the original unchanged filename is returned.
34 The returned string must not be modified or freed, and becomes invalid when
38 Additionally, the following
44 Return the unmodified names as it is in the ZIP archive.
46 \fRZIP_FL_ENC_GUESS\fR
48 Guess the encoding of the name in the ZIP archive and convert it
49 to UTF-8, if necessary.
51 \fRZIP_FL_ENC_STRICT\fR
52 Follow the ZIP specification and expect CP-437 encoded names in
53 the ZIP archive (except if they are explicitly marked as UTF-8).
57 ASCII is a subset of both CP-437 and UTF-8.
59 Upon successful completion, a pointer to the name is returned.
64 is set to indicate the error.
69 [\fRZIP_ER_DELETED\fR]
71 refers to a file that has been deleted
77 is not a valid file index in
81 points to an added file and
82 \fRZIP_FL_UNCHANGED\fR
86 Required memory could not be allocated.
92 was added in libzip 0.6.
93 In libzip 0.10 the type of
99 In libzip 0.11 the type of
106 Dieter Baron <\fIdillo@nih.at\fR>
108 Thomas Klausner <\fItk@giga.or.at\fR>