---
name: "zip_source_open"
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_open"
---

# zip\_source\_open(3)

open zip\_source for reading

## NAME

**zip\_source\_open** – open zip\_source for reading

## LIBRARY

libzip (-lzip)

## SYNOPSIS

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

*int*\

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

## DESCRIPTION

The function **zip\_source\_open**() opens *source* for reading.

## RETURN VALUES

Upon successful completion 0 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\_begin\_write(3)](/zip_source_begin_write/3.md), [zip\_source\_close(3)](/zip_source_close/3.md), [zip\_source\_read(3)](/zip_source_read/3.md), [zip\_source\_seek(3)](/zip_source_seek/3.md), [zip\_source\_tell(3)](/zip_source_tell/3.md)

## HISTORY

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

## AUTHORS

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