zip_error_set_from_source(3)

zip_error_set_from_source3

Fill in zip_error structure from source

Usage

#include <zip.h>

void

zip_error_set_from_source(zip_error_t *ze, zip_source_t *src);

Library

libzip (-lzip)

Overview

The zip_error_set_from_source() function sets the zip_error pointed to by ze to the error reported by src as returned by zip_error_source(3). ze must be allocated and initialized with zip_error_init(3) before calling zip_error_set_from_source().

Releases

Unchanged in 2 releases since Debian 13 (Trixie).

  1. 13–Arch

History

zip_error_set_from_source() was added in libzip 1.10.

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.