zzip_readdir(3)
π zzip_readdir β from the zziplib Function List, section 3 π
okay bestie, sit down, hydrate, and let me tell you about the little function that walks a zip like it's a real directory π
β¨ NAME β¨
zzip_readdir β read dir. that's it, that's the name, short and iconic π
πΈ SYNOPSIS πΈ
#include <zzip/lib.h>
ZZIP_DIRENT*
zzip_readdir(ZZIP_DIR* dir)
π¦ DESCRIPTION π¦
so here's the tea π β zzip_readdir is literally the equivalent of a readdir(2) call, except it works for a realdir or a zipfile that's referenced by the ZZIP_DIR you got back from zzip_opendir. same energy, different plumbing, no cap β¨
the ZZIP_DIR handle (you know, the one zzip_opendir hands you) actually contains a few more entries than what gets copied into the ZZIP_DIRENT. so like, don't go assuming every field is filled in, bestie π
the only valid fields in a ZZIP_DIRENT are:
d_nameβ the file name πd_comprβ compressiond_csizeβ compressed sizest_sizeβ uncompressed size
β οΈ vibe check: those four are it. the rest of the struct is giving "decorative", not "reliable". only trust the ones listed above, fr fr.
π AUTHOR π
Guido Draheim <guidod@gmx.de> β the main character who wrote this π
π COPYRIGHT π
Copyright (c) Guido Draheim, use under copyleft (LGPL,MPL) β so yes, share it, remix it, just keep the copyleft energy intact π«Ά
π§ SEE ALSO π§
readdir(2), zzip_opendir β go read those next, iykyk π
and that's the whole page, bestie!! π this one came straight out of zziplib version 0.13.78, living in section 3 of the manual, brought to you by the zziplib Function List β¨ slay, go read some directories π π
π¦ where this page comes from
- centos-stream 10: zziplib-devel 0.13.78-2.el10 Β· LGPL-2.0-or-later OR MPL-1.1
- debian trixie: libzzip-dev 0.13.78+dfsg.1-0.1 Β· ZZIP
- fedora 43: zziplib-devel 0.13.78-2.fc43 Β· LGPL-2.0-or-later OR MPL-1.1
- fedora 43: zziplib-devel 0.13.78-2.fc43 Β· LGPL-2.0-or-later OR MPL-1.1
- fedora 44: zziplib-devel 0.13.78-4.fc44 Β· LGPL-2.0-or-later OR MPL-1.1
- fedora 44: zziplib-devel 0.13.78-4.fc44 Β· LGPL-2.0-or-later OR MPL-1.1
- opensuse-leap 16.0: zziplib-devel 0.13.78-160000.2.2 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: zziplib-devel 0.13.78-160000.2.2 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: zziplib-devel 0.13.78-160000.2.2 Β· LGPL-2.1-or-later
- opensuse-leap 16.0: zziplib-devel 0.13.78-160000.2.2 Β· LGPL-2.1-or-later
- ubuntu questing: libzzip-dev 0.13.78+dfsg.1-0.1
- ubuntu resolute: libzzip-dev 0.13.78+dfsg.1-0.2 Β· ZZIP
- ubuntu stonking: libzzip-dev 0.13.78+dfsg.1-0.2 Β· ZZIP
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms