zzip_dir_open(3)

zzip_dir_open3

Open zip-archive.

Usage

#include <zzip/lib.h>

ZZIP_DIR*
zzip_dir_open(zzip_char_t* filename, zzip_error_t* e)
ZZIP_DIR*
zzip_dir_open_ext_io(zzip_char_t* filename, zzip_error_t* e, zzip_strings_t* ext,
                     zzip_plugin_io_t io)
int
zzip_dir_read(ZZIP_DIR* dir, ZZIP_DIRENT* d)

Overview

The zzip_dir_open function opens the given zip-archive (if available). The two ext_io arguments will default to use posix io and a set of default fileext that can atleast add .zip ext itself.

the zzip_dir_open_ext_io function uses explicit ext and io instead of the internal defaults. Setting these to zero is equivalent to zzip_dir_open Note that the referenced ext_io plugin handlers structure must be static as it is not copied to the returned ZZIP_DIR structure.

fills the dirent-argument with the values and increments the read-pointer of the dir-argument.

returns 0 if there no entry (anymore).

Releases

11 releases since Debian 3.1 (Sarge); the text changed 6 times.

  1. 3.1–4.0
  2. 5.0
  3. 6.0–7
  4. 8
  5. 9–11
  6. 12
  7. 13

Author

Guido Draheim <[email protected]> Tomi Ollila <[email protected]>

From libzzip-dev 0.13.78+dfsg.1-0.1 in Debian 13 (Trixie). Parsed by carta from the page's man source.