zip_file(5)

zip_file5

File in archive

Usage

#include <zip.h>

zip_file_t *file;

Library

libzip (-lzip)

Overview

A zip_file represents a file inside an archive, opened for reading. It is created with zip_fopen(3), zip_fopen_index(3), zip_fopen_encrypted(3), or zip_fopen_index_encrypted(3).

Data is accessed with zip_fread(3), zip_file_is_seekable(3), zip_ftell(3), or zip_fseek(3).

It is closed with zip_fclose(3).

If the containing zip_t is closed, all further uses of the zip_file_t return an error. It is a convenience wrapper around a zip_source_t as created by zip_source_zip(3).

Authors

Dieter Baron ⟨[email protected]⟩ and Thomas Klausner ⟨[email protected]⟩

From libzip 1.11.4-1 in Arch Linux 2026-11-01. Parsed by carta from the page's mdoc source.