---
name: "zip_file_get_error"
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_file_get_error"
---

# zip\_file\_get\_error(3)

extract zip\_error from zip\_file

## NAME

**zip\_file\_get\_error** – extract zip\_error from zip\_file

## LIBRARY

libzip (-lzip)

## SYNOPSIS

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

*zip\_error\_t* *\**\

**zip\_file\_get\_error**(*zip\_file\_t \*zf*);

## DESCRIPTION

**zip\_file\_get\_error**() function returns the zip\_error associated with the zip\_file *zf*.

## SEE ALSO

[libzip(3)](/libzip/3.md)

## HISTORY

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

## AUTHORS

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