---
name: "zzip_closedir"
section: "3"
platform: "linux"
package: "libzzip-dev"
version: "0.13.78+dfsg.1-0.1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/zzip_closedir"
---

# zzip\_closedir(3)

stop usage.

## NAME

zzip\_closedir -  stop usage.

## SYNOPSIS

```
#include <zzip/lib.h>

int
zzip_closedir(ZZIP_DIR* dir)
```

## DESCRIPTION

 The *zzip\_closedir* function is the equivalent of *[closedir(3)](/closedir/3.md)* for a realdir or zipfile.

 The *zzip\_closedir* function is magic - if the given arg-ZZIP\_DIR is a real directory, it will call the real *[closedir(3)](/closedir/3.md)* and then free the wrapping ZZIP\_DIR structure. Otherwise it will divert to *zzip\_dir\_close* which will free the ZZIP\_DIR structure.

## AUTHOR

 Guido Draheim \<guidod@gmx.de\>

## COPYRIGHT

 Copyright (c) Guido Draheim, use under copyleft (LGPL,MPL)
