zzip_tell(3)
π zzip_tell(3) β bestie edition π
okay so this is a page from the zziplib Function List manual, and today we're talking about the tell girlies: zzip_tell and zzip_tell32. no cap, they're literally just here to tell you where you are. π
β¨ NAME β¨
zzip_tell, zzip_tell32 β tell. that's it. that's the vibe. π
β¨ SYNOPSIS β¨
#include <zzip/lib.h>
zzip_off_t
zzip_tell(ZZIP_FILE* fp)
long
zzip_tell32(ZZIP_FILE* fp)
ok so you pull in the header, then you've got two lil functions to choose from β the big one and the small one. slay. π¦
β¨ DESCRIPTION β¨
so zzip_tell is the moment where it goes tell(2) and reports the current position inside a real/zipped file. main character behaviour honestly.
it hands back the current offset within that real/zipped file, and if we're in the zipped-file situation, that offset is measured in uncompressed bytes. yes bestie, uncompressed β we're counting the vibes after decompression, not the squished bytes on disk. π
now here's the tea π: if the file-handle is wrapping a file that's stat-able, it will lowkey just do a normal tell(2)-call like nothing happened. but if it's not stat-able, then the offset gets calculated from the amount of data left plus the total uncompressed size. either way you get your number, the path there just depends. β¨
and zzip_tell32? she's provided for the users who can't use any largefile-mode. a whole function just for y'all. iconic, honestly. π
ngl if you're on a largefile setup,zzip_tellis your girl. if you're not,zzip_tell32has you. pick your fighter. π«Ά
β¨ AUTHOR β¨
- Guido Draheim
<guidod@gmx.de> - Tomi Ollila
<Tomi.Ollila@iki.fi>
the two legends who made this happen, periodt. ππ
β¨ COPYRIGHT β¨
Copyright (c) Guido Draheim, use under copyleft (LGPL,MPL)
ok that's the whole page bestie, go forth and tell(2) responsibly. β¨πΈ
this was zzip_tell(3) from zziplib, version 0.13.78 β mwah, love u, bye π ππ¦
π¦ 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