---
name: "zzip_file_open"
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_file_open"
---

# zzip\_file\_open(3)

start usage.

## NAME

zzip\_file\_open -  start usage.

## SYNOPSIS

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

ZZIP_FILE*
zzip_file_open(ZZIP_DIR* dir, zzip_char_t* name, int o_mode)
```

## DESCRIPTION

 The *zzip\_file\_open* function opens an *ZZIP\_FILE* from an already open *ZZIP\_DIR* handle. Since we have a chance to reuse a cached *buf32k* and *ZZIP\_FILE* memchunk this is the best choice to unpack multiple files.

 Note: the zlib supports 2..15 bit windowsize, hence we provide a 32k memchunk here... just to be safe.

 On error it returns null and sets errcode in the ZZIP\_DIR.

## AUTHOR

 Guido Draheim \<guidod@gmx.de\> Tomi Ollila \<Tomi.Ollila@iki.fi\>

## COPYRIGHT

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