zzip_file_real(3)
π zzip_file_real β bestie edition π
okay so this page is from the zziplib Function List manual (that's the <pink>3</pink> section, iykyk), and we're about to vibe check four little functions that tell you whether the thing you're holding is a real file/dir or a zipped-up one. no cap, it's giving very useful.
β¨ NAME β¨
zzip_file_real, zzip_dir_real, zzip_realdir, zzip_realfd β check real or zipped file.
πΈ SYNOPSIS πΈ
#include <zzip/lib.h>
int
zzip_file_real(ZZIP_FILE* fp)
int
zzip_dir_real(ZZIP_DIR* dir)
void*
zzip_realdir(ZZIP_DIR* dir)
int
zzip_realfd(ZZIP_FILE* fp)
π¦ DESCRIPTION π¦
okay so, four functions, four little vibes. let's go. π
zzip_file_real β this one looks at your ZZIP_FILE-handle and is like "hmm, are you wrapping a real file, or are you a file that lives inside a zip-archive?" π΅οΈ It returns 1 for a stat'able file, and 0 for a file inside a zip-archive. literally that simple, bestie.
zzip_dir_real β same energy but for directories. It checks if your ZZIP_DIR-handle is wrapping a real directory or a zip-archive. Returns 1 for a stat'able directory, and 0 for a handle to zip-archive. π
zzip_realdir β this one hands you the posix DIR* handle (if one exists). but listen β check before with zzip_dir_real to see if the the ZZIP_DIR points to a real directory. don't just grab it and hope, that's not the move. π
zzip_realfd β same deal but it's the posix file descriptor (if one exists). and again, check before with zzip_file_real to see if the the ZZIP_FILE points to a real file. fr fr, do the vibe check first. β¨
π AUTHOR π
Guido Draheim <guidod@gmx.de>
π COPYRIGHT π
Copyright (c) Guido Draheim, use under copyleft (LGPL,MPL)
and that's the whole page, bestie!! π«Ά this lil slice of zziplib 0.13.78 is all yours β go forth, check your realness, slay. πβ¨πΈ
π¦ 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