---
name: "zzip_readdir"
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_readdir"
---

# zzip\_readdir(3)

read dir.

## NAME

zzip\_readdir -  read dir.

## SYNOPSIS

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

ZZIP_DIRENT*
zzip_readdir(ZZIP_DIR* dir)
```

## DESCRIPTION

 The *zzip\_readdir* function is the equivalent of a *[readdir(2)](/readdir/2.md)* for a realdir or a zipfile referenced by the ZZIP\_DIR returned from *zzip\_opendir*.

 The ZZIP\_DIR handle (as returned by *zzip\_opendir)* contains a few more entries than being copied into the ZZIP\_DIRENT. The only valid fields in a ZZIP\_DIRENT are d\_name (the file name), d\_compr (compression), d\_csize (compressed size), st\_size (uncompressed size).

## AUTHOR

 Guido Draheim \<guidod@gmx.de\>

## COPYRIGHT

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