---
name: "zip_source_tell"
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_source_tell"
---

# zip\_source\_tell(3)

report current read offset in zip source

## NAME

**zip\_source\_tell** – report current read offset in zip source

## LIBRARY

libzip (-lzip)

## SYNOPSIS

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

*zip\_int64\_t*\

**zip\_source\_tell**(*zip\_source\_t \*source*);

## DESCRIPTION

The function **zip\_source\_tell**() returns the current read offset for *source*. The return value can be passed to [zip\_source\_seek(3)](/zip_source_seek/3.md) with *whence* set to SEEK\_SET to return to the same location in the source.

## RETURN VALUES

Upon successful completion the current read offset is returned. Otherwise, -1 is returned and the error information in *source* is set to indicate the error.

## SEE ALSO

[libzip(3)](/libzip/3.md), [zip\_source(5)](/zip_source/5.md), [zip\_source\_read(3)](/zip_source_read/3.md), [zip\_source\_tell\_write(3)](/zip_source_tell_write/3.md)

## HISTORY

**zip\_source\_tell**() was added in libzip 1.0.

## AUTHORS

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