zip_ftell(3)

zip_ftell3

Tell position in file

Usage

#include <zip.h>

zip_int64_t

zip_ftell(zip_file_t *file);

Library

libzip (-lzip)

Overview

The zip_ftell() function reports the current offset in the file.

Return values

If successful, zip_ftell returns the current file position. Otherwise, -1 is returned.

Releases

5 releases since Debian 10 (Buster); the text changed 1 time.

  1. 10–12
  2. 13–Arch

History

zip_ftell() was added in libzip 1.2.0.

Authors

Dieter Baron ⟨[email protected]⟩ and Thomas Klausner ⟨[email protected]⟩

From libzip 1.11.4-1 in Arch Linux 2026-11-01. Parsed by carta from the page's mdoc source.