---
name: "zip_fclose"
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_fclose"
---

# zip\_fclose(3)

close file in zip archive

## NAME

**zip\_fclose** – close file in zip archive

## LIBRARY

libzip (-lzip)

## SYNOPSIS

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

*int*\

**zip\_fclose**(*zip\_file\_t \*file*);

## DESCRIPTION

The **zip\_fclose**() function closes *file* and frees the memory allocated for it.

## RETURN VALUES

Upon successful completion 0 is returned. Otherwise, the error code is returned.

## SEE ALSO

[libzip(3)](/libzip/3.md), [zip\_fopen(3)](/zip_fopen/3.md), [zip\_fread(3)](/zip_fread/3.md), [zip\_fseek(3)](/zip_fseek/3.md)

## HISTORY

**zip\_fclose**() was added in libzip 0.6.

## AUTHORS

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