zzip_read(3)

zzip_read3

Read data.

Usage

#include <zzip/lib.h>

zzip_ssize_t
zzip_read(ZZIP_FILE* fp, void* buf, zzip_size_t len)
zzip_size_t
zzip_fread(void* ptr, zzip_size_t size, zzip_size_t nmemb, ZZIP_FILE* file)

Overview

The zzip_read function will read(2) data from a real/zipped file.

The zzip_read function is the replacement for read(2) will fill the given buffer with bytes from the opened file. It will return the number of bytes read, so if the EOF is encountered you will be prompted with the number of bytes actually read.

If the file-handle is wrapping a stat'able file then it will actually just perform a normal read(2)-call, otherwise zzip_file_read is called to decompress the data stream and any error is mapped to errno(3).

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.