---
name: "zip_error_set_from_source"
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_error_set_from_source"
---

# zip\_error\_set\_from\_source(3)

fill in zip\_error structure from source

## NAME

**zip\_error\_set\_from\_source** – fill in zip\_error structure from source

## LIBRARY

libzip (-lzip)

## SYNOPSIS

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

*void*\

**zip\_error\_set\_from\_source**(*zip\_error\_t \*ze*, *zip\_source\_t \*src*);

## DESCRIPTION

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)](/zip_error_init/3.md) before calling **zip\_error\_set\_from\_source**().

## SEE ALSO

[libzip(3)](/libzip/3.md), [zip\_error\_init(3)](/zip_error_init/3.md), [zip\_error\_set(3)](/zip_error_set/3.md)

## HISTORY

**zip\_error\_set\_from\_source**() was added in libzip 1.10.

## AUTHORS

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