---
name: "zip_ftell"
section: "3"
platform: "linux"
package: "libzip"
version: "1.11.4-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/zip_ftell"
---

# zip\_ftell(3)

tell position in file

## NAME

**zip\_ftell** – tell position in file

## LIBRARY

libzip (-lzip)

## SYNOPSIS

**#include \<zip.h\>**

*zip\_int64\_t*\

**zip\_ftell**(*zip\_file\_t \*file*);

## DESCRIPTION

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.

## SEE ALSO

[libzip(3)](/libzip/3.md), [zip\_fclose(3)](/zip_fclose/3.md), [zip\_file\_get\_error(3)](/zip_file_get_error/3.md), [zip\_fopen(3)](/zip_fopen/3.md), [zip\_fread(3)](/zip_fread/3.md), [zip\_fseek(3)](/zip_fseek/3.md)

## HISTORY

**zip\_ftell**() was added in libzip 1.2.0.

## AUTHORS

Dieter Baron ⟨*dillo@nih.at*⟩ and Thomas Klausner ⟨*wiz@gatalith.at*⟩
