---
name: "zip_file_error_clear"
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_error_clear"
---

# zip\_file\_error\_clear(3)

clear error state for archive or file

## NAME

**zip\_error\_clear**, **zip\_file\_error\_clear** – clear error state for archive or file

## LIBRARY

libzip (-lzip)

## SYNOPSIS

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

*void*\

**zip\_error\_clear**(*zip\_t \*archive*);

*void*\

**zip\_file\_error\_clear**(*zip\_file\_t \*file*);

## DESCRIPTION

The **zip\_error\_clear**() function clears the error state for the zip archive *archive*.

The **zip\_file\_error\_clear**() function does the same for the zip file *file*.

## SEE ALSO

[libzip(3)](/libzip/3.md), [zip\_get\_error(3)](/zip_get_error/3.md)

## HISTORY

**zip\_error\_clear**() and **zip\_file\_error\_clear**() were added in libzip 0.8.

## AUTHORS

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