ZIP_FTELL(3)
β¨ 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_ftellreturns the current file position β - if it's not giving:
-1is returned π
no in-between, bestie. either you get your position or you get a-1and you go checkzip_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 π«Άππ
π¦ where this page comes from
- arch rolling: libzip 1.11.4-1 Β· BSD
- debian trixie: libzip-dev 1.11.3-2 Β· BSD-3-Clause
- 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 questing: libzip-dev 1.11.3-2
- ubuntu resolute: libzip-dev 1.11.4-2 Β· BSD-3-Clause
- ubuntu stonking: libzip-dev 1.11.4-2build1 Β· BSD-3-Clause
- Copyright (C) 2016-2021 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