---
name: "zip_error_set"
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"
---

# zip\_error\_set(3)

fill in zip\_error structure

## NAME

**zip\_error\_set** – fill in zip\_error structure

## LIBRARY

libzip (-lzip)

## SYNOPSIS

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

*void*\

**zip\_error\_set**(*zip\_error\_t \*ze*, *int le*, *int se*);

## DESCRIPTION

The **zip\_error\_set**() function sets the zip\_error pointed to by *ze* to the libzip error code *le* and the system error code *se*.

*ze* must be allocated and initialized with [zip\_error\_init(3)](/zip_error_init/3.md) before calling **zip\_error\_set**().

## SEE ALSO

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

## HISTORY

**zip\_error\_set**() was added in libzip 1.0.

## AUTHORS

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