---
name: "zzip_init_io"
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_init_io"
---

# zzip\_init\_io(3)

init plugin struct.

## NAME

zzip\_init\_io, zzip\_get\_default\_io -  init plugin struct.

## SYNOPSIS

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

int
zzip_init_io(zzip_plugin_io_handlers_t io, int flags)
zzip_plugin_io_t
zzip_get_default_io(void)
```

## DESCRIPTION

 The *zzip\_init\_io* function initializes the users handler struct to default values being the posix io functions in default configured environments.

 Note that the target io\_handlers\_t structure should be static or atleast it should be kept during the lifetime of zzip operations.

 The *zzip\_get\_default\_io* function returns a zzip\_plugin\_io\_t handle to static defaults wrapping the posix io file functions for actual file access. The returned structure is shared by all threads in the system.

## AUTHOR

 	Guido Draheim \<guidod@gmx.de\> Mike Nordell \<tamlin-@-algonet-se\>

## COPYRIGHT

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