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

# zip(5)

zip archive structure

## NAME

**zip** – zip archive structure

## LIBRARY

libzip (-lzip)

## SYNOPSIS

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

*zip\_t* *\*archive*;

## DESCRIPTION

A **zip** represents an open zip archive and is used for all functions accessing and modifying archives.

It is created with [zip\_open(3)](/zip_open/3.md), [zip\_open\_from\_source(3)](/zip_open_from_source/3.md), or [zip\_fdopen(3)](/zip_fdopen/3.md).

It is closed with [zip\_close(3)](/zip_close/3.md) (keeping changes) or [zip\_discard(3)](/zip_discard/3.md) (discarding changes).

All objects representing parts of an archive (like *zip\_file\_t*) are only valid while the archive remains open.

## SEE ALSO

[libzip(3)](/libzip/3.md), [zip\_close(3)](/zip_close/3.md), [zip\_discard(3)](/zip_discard/3.md), [zip\_fopen(3)](/zip_fopen/3.md), [zip\_open(3)](/zip_open/3.md), [zip\_open\_from\_source(3)](/zip_open_from_source/3.md)

## AUTHORS

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