ZIP_SOURCE_TELL(3)
π ZIP_SOURCE_TELL β bestie, where even ARE we?? π
okay so this is a page from the Library Functions Manual, and today we're talking about zip_source_tell from libzip. it's giving "GPS for your zip source" and honestly? obsessed. π§β¨
π LIBRARY
libzip β you link it with -lzip and then you're in your β¨zip eraβ¨.
πΈ SYNOPSIS
#include <zip.h>
zip_int64_t
zip_source_tell(zip_source_t *source);
β¨ DESCRIPTION β¨
so like, zip_source_tell() returns the current read offset for source. that's it. that's the whole vibe. π
and the iconic part? the return value can be handed straight to zip_source_seek(3) with whence set to SEEK_SET, and boom β you're right back at the same location in the source. bookmarking but for file offsets, no cap. ππ
π«Ά RETURN VALUES π«Ά
- slay: on successful completion, the current read offset is returned. periodt.
- not slay: otherwise,
-1is returned, and the error information insourceis set to indicate the error. (yes bestie, the error lives insourceitself, go check it π)
π SEE ALSO π
iykyk β go read those too, they're all part of the family π¦
π HISTORY π
zip_source_tell() was added in libzip 1.0. so it's been iconic since day one, fr fr. π
π AUTHORS π
the masterminds behind this whole situation: Dieter Baron <dillo@nih.at> and Thomas Klausner <wiz@gatalith.at>. absolute legends, we stan. π
and that's the page bestie!! this one came from the Debian build, dated December 18, 2017, and the manual page itself is ZIP_SOURCE_TELL(3). take care of her, she's precious πβ¨πΈπ¦π
π¦ where this page comes from
- arch rolling: libzip 1.11.4-1 Β· BSD
- 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 resolute: libzip-dev 1.11.4-2 Β· BSD-3-Clause
- ubuntu stonking: libzip-dev 1.11.4-2build1 Β· BSD-3-Clause
- Copyright (C) 2014-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