---
name: "zzip_dirhandle"
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_dirhandle"
---

# zzip\_dirhandle(3)

get handle.

## NAME

zzip\_dirhandle, zzip\_dirfd -  get handle.

## SYNOPSIS

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

ZZIP_DIR*
zzip_dirhandle(ZZIP_FILE* fp)
int
zzip_dirfd(ZZIP_DIR* dir)
```

## DESCRIPTION

 The *zzip\_dirhandle* function will just return the fp-\>dir value.

 If a ZZIP\_FILE is contained within a zip-file that one will be a valid pointer, otherwise a NULL is returned and the ZZIP\_FILE wraps a real file.

 The *zzip\_dirfd* function will just return dir-\>fd

 If a ZZIP\_DIR does point to a zipfile then the file-descriptor of that zipfile is returned, otherwise a NULL is returned and the ZZIP\_DIR wraps a real directory DIR (if you have dirent on your system).

## AUTHOR

 Guido Draheim \<guidod@gmx.de\>

## COPYRIGHT

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