1ZZIP_READ(3)                 zziplib Function List                ZZIP_READ(3)
2
3
4

NAME

6       zzip_read, zzip_fread - read data.
7

SYNOPSIS

9       #include <zzip/lib.h>
10
11       zzip_ssize_t zzip_read((ZZIP_FILE * fp, void *buf, zzip_size_t len));
12
13       zzip_size_t
14                              zzip_fread((void *ptr, zzip_size_t size, zzip_size_t nmemb, ZZIP_FILE * file));
15

DESCRIPTION

17       The zzip_read function will read(2) data from a real/zipped file.
18
19       The zzip_read function is the replacement for read(2) will fill the
20       given buffer with bytes from the opened file. It will return the number
21       of bytes read, so if the EOF is encountered you will be prompted with
22       the number of bytes actually read.
23
24       If the file-handle is wrapping a stat'able file then it will actually
25       just perform a normal read(2)-call, otherwise zzip_file_read is called
26       to decompress the data stream and any error is mapped to errno(3).
27

AUTHOR

29       ยท   Guido Draheim <guidod@gmx.de> Tomi Ollila <Tomi.Ollila@iki.fi>
30
32       Copyright (c) Guido Draheim, use under copyleft (LGPL,MPL)
33
34
35
36zziplib                             0.13.71                       ZZIP_READ(3)
Impressum