DOKK / manpages / debian 12 / libzip-dev / zip_get_num_files.3.en
ZIP_GET_NUM_FILES(3) Library Functions Manual ZIP_GET_NUM_FILES(3)

zip_get_num_filesget number of files in archive (obsolete interface)

libzip (-lzip)

#include <zip.h>

int
zip_get_num_files(zip_t *archive);

. zip_get_num_entries(3) .

The () function returns the number of files in archive.

zip_get_num_files() returns the number of files in the zip archive, or -1 if archive is NULL.

libzip(3), zip_fopen_index(3), zip_stat_index(3)

zip_get_num_files() was added in libzip 0.6. It was deprecated in libzip 0.11, use zip_get_num_entries(instead) instead.

Dieter Baron <dillo@nih.at> and Thomas Klausner <tk@giga.or.at>

December 18, 2017 Debian