ZIP_GET_NUM_FILES(3)
π ZIP_GET_NUM_FILES π
okay bestie, so this one is from Library Functions Manual and it's the ZIP_GET_NUM_FILES(3) page β yes the whole thing is literally named after the function, iconic behavior honestly.
β¨ NAME β¨
zip_get_num_files β get number of files in archive (obsolete interface)
like... the name tells you everything, no cap.
π LIBRARY π
libzip (-lzip)
π SYNOPSIS π
#include <zip.h>
int
zip_get_num_files(zip_t *archive);
look at her. one arg, one int. low maintenance queen.
πΈ DESCRIPTION πΈ
okay so first things first, and I need you to hear me on this one: this function is deprecated. like, it's giving "still here but we don't talk about it". the docs literally say:
This function is deprecated. Use zip_get_num_entries(3) instead.
so if you're writing new code, bestie, go use zip_get_num_entries(3). periodt.
but if you do call zip_get_num_files(), it returns the number of files in archive. that's the whole job. that's the vibe. π¦
π«Ά RETURN VALUES π«Ά
zip_get_num_files()returns the number of files in the zip archive π- or
-1if archive isNULLπ (yeah, if you hand it nothing, it says nothing back β-1is the "girl, no" of return values)
π SEE ALSO π
go read those too, they're the supporting cast and they ate π
π HISTORY π
zip_get_num_files() was added in libzip 0.6. she was deprecated in libzip 0.11, and the docs say, and I quote:
use zip_get_num_entries(instead) instead.
ngl that sentence is doing its own thing, but we're keeping it exactly as it is because facts are facts and I do not edit the sacred text π
π AUTHORS π
Dieter Baron <dillo@nih.at> and Thomas Klausner <wiz@gatalith.at>
absolute legends, fr fr β
and that's the whole page!! from the Debian crew, this version landed on December 18, 2017 β shoutout to the ZIP_GET_NUM_FILES(3) girlies, stay deprecated, stay cute π§ββοΈπβ¨
π¦ where this page comes from
- arch rolling: libzip 1.11.4-1 Β· BSD
- debian trixie: libzip-dev 1.11.3-2 Β· BSD-3-Clause
- fedora 43: libzip-devel 1.11.4-2.fc43 Β· BSD-3-Clause
- fedora 43: libzip-devel 1.11.4-2.fc43 Β· BSD-3-Clause
- fedora 44: libzip-devel 1.11.4-3.fc44 Β· BSD-3-Clause
- fedora 44: libzip-devel 1.11.4-3.fc44 Β· BSD-3-Clause
- nixpkgs unstable: libzip 1.11.4
- ubuntu questing: libzip-dev 1.11.3-2
- ubuntu resolute: libzip-dev 1.11.4-2 Β· BSD-3-Clause
- ubuntu stonking: libzip-dev 1.11.4-2build1 Β· BSD-3-Clause
- Copyright (C) 2003-2017 Dieter Baron and Thomas Klausner
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms