ZIP_FTELL(3)

πŸ“¦
version 1.11.4 Β· 3 versions
, in arch rolling, debian trixie, fedora 43, fedora 44, nixpkgs unstable, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ zip_ftell β€” tell position in file ✨

okay bestie, welcome to ZIP_FTELL(3), a certified Library Functions Manual moment πŸŽ€ this one lives in libzip, and it's literally the "where am i rn" function. no cap. πŸ’…


πŸ“š LIBRARY

libzip β€” link it with -lzip and you're golden 🫢


🧚 SYNOPSIS

#include <zip.h>

zip_int64_t
zip_ftell(zip_file_t *file);

yes that's the whole vibe. one function. one pointer. iconic. ✨


🌸 DESCRIPTION

so zip_ftell() reports the current offset in the file. that's it. that's the whole job. it tells you where you're at, like a little position check for your soul (well, for your zip_file_t *file) πŸ¦‹

the way it just... knows your current offset? obsessed. πŸ’–


πŸ’« RETURN VALUES

  • if everything's slay and it works: zip_ftell returns the current file position βœ…
  • if it's not giving: -1 is returned 😭
no in-between, bestie. either you get your position or you get a -1 and you go check zip_file_get_error(3). periodt.

πŸ‘€ SEE ALSO

the whole friend group fr fr 🫢✨


πŸ•°οΈ HISTORY

zip_ftell() was added in libzip 1.2.0. so it's been serving since 1.2.0, we love a seasoned queen πŸ‘‘


πŸ‘‘ AUTHORS

Dieter Baron <dillo@nih.at> and Thomas Klausner <wiz@gatalith.at> β€” the two main characters who wrote this. bow down πŸŽ€πŸ’œ


k bye bestie, go tell some positions!! πŸ’…πŸŒΈβœ¨

this page came to you courtesy of Debian, dated September 11, 2024 β€” mwah, love that for us πŸ«ΆπŸ’–πŸŒˆ