ZIP_SOURCE_TELL_WRITE(3)
π ZIP_SOURCE_TELL_WRITE(3) π
okay bestie, so this is the manual page for zip_source_tell_write(3) and it's genuinely one of the cutest little functions in libzip. no cap. let's get into it π«Ά
β¨ NAME β¨
zip_source_tell_write β report current write offset in zip source
basically it's the "where am I rn" of writing to a zip source. main character energy: it knows its position at all times π
π LIBRARY π
libzip (-lzip)
yeah so you gotta link against libzip with -lzip when you compile. that's the vibe. β¨
π SYNOPSIS π
#include <zip.h>
zip_int64_t
zip_source_tell_write(zip_source_t *source);
look at her. so simple. so iconic. π¦
πΈ DESCRIPTION πΈ
so, the function zip_source_tell_write() returns the current write offset for source. that's it. that's the whole thing. it tells you where you're at when you're writing. β¨
and here's the slay part: the return value can be passed to zip_source_seek_write(3) with whence set to SEEK_SET to return to the same location in the source. so it's like dropping a pin π on your fave spot so you can come back to it later. literally so useful. iykyk.
π RETURN VALUES π
- upon successful completion, the current write offset is returned. ate. π
- otherwise,
-1is returned and the error information insourceis set to indicate the error. π so yeah, if you see a-1, something went wrong andsourceis holding the receipts.
bestie. check that error info. don't just ignore a -1 and move on. that's not the vibe. π
π¦ SEE ALSO π¦
libzip(3)zip_source(5)zip_source_begin_write(3)zip_source_commit_write(3)zip_source_rollback_write(3)zip_source_tell(3)zip_source_write(3)
the whole friend group fr fr. go read them too, they're all part of the same storyline π
β HISTORY β
zip_source_tell_write() was added in libzip 1.0. so she's been around. a legend from the start π
π AUTHORS π
Dieter Baron <dillo@nih.at> and Thomas Klausner <wiz@gatalith.at>
shoutout to the icons who made this happen π
and that's the whole page, bestie! this one shipped on the Debian side back on December 18, 2017, and the manual itself lives with libzip. periodt. πβ¨πΈ
π¦ 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