1ZIP_GET_NUM_ENTRIES(3) BSD Library Functions Manual ZIP_GET_NUM_ENTRIES(3)
2
4 zip_get_num_entries — get number of entries in archive
5
7 libzip (-lzip)
8
10 #include <zip.h>
11
12 zip_int64_t
13 zip_get_num_entries(zip_t *archive, zip_flags_t flags);
14
16 The zip_get_num_entries() function returns the number of entries in
17 archive. Entries are all files that are present in the original archive
18 or that were added while the archive is open. This includes deleted
19 files, since indices are not renumbered until the archive is closed.
20 (This allows to refer to deleted files, e. g. to undelete them.)
21
22 If flags is set to ZIP_FL_UNCHANGED, the original number of files is re‐
23 turned.
24
26 zip_get_num_entries() returns the number of entries in the zip archive,
27 or -1 if archive is NULL.
28
30 libzip(3), zip_fopen_index(3), zip_stat_index(3)
31
33 zip_get_num_entries() was added in libzip 0.10. In libzip 0.11 the re‐
34 turn type was changed from zip_uint64_t to zip_int64_t. In libzip 0.11
35 the type of flags was changed from int to zip_flags_t.
36
38 Dieter Baron <dillo@nih.at> and Thomas Klausner <tk@giga.or.at>
39
40BSD August 19, 2022 BSD