---
name: "zip_source_keep"
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_keep"
---

# zip\_source\_keep(3)

increment reference count of zip data source

## NAME

**zip\_source\_keep** – increment reference count of zip data source

## LIBRARY

libzip (-lzip)

## SYNOPSIS

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

*void*\

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

## DESCRIPTION

The function **zip\_source\_keep**() increments the reference count of *source*.

## SEE ALSO

[libzip(3)](/libzip/3.md), [zip\_source(5)](/zip_source/5.md), [zip\_source\_free(3)](/zip_source_free/3.md)

## HISTORY

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

## AUTHORS

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