---
name: "zip_source_close"
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_close"
---

# zip\_source\_close(3)

close zip\_source (which was open for reading)

## NAME

**zip\_source\_close** – close zip\_source (which was open for reading)

## LIBRARY

libzip (-lzip)

## SYNOPSIS

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

*int*\

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

## DESCRIPTION

The function **zip\_source\_close**() closes *source*, indicating that no more data will be read.

## 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\_free(3)](/zip_source_free/3.md), [zip\_source\_open(3)](/zip_source_open/3.md)

## HISTORY

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

## AUTHORS

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