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
12       zzip_ssize_t
13       zzip_read(ZZIP_FILE * fp, void *buf, zzip_size_t len)
14
15       zzip_size_t
16       zzip_fread(void *ptr, zzip_size_t size, zzip_size_t nmemb, ZZIP_FILE * file)
17
18
19
20

DESCRIPTION

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

AUTHOR

36        Guido Draheim <guidod@gmx.de> Tomi Ollila <Tomi.Ollila@iki.fi>
37
38
39
41        Copyright (c) Guido Draheim, use under copyleft (LGPL,MPL)
42
43
44
45
46
47zziplib                             0.13.72                       zzip_read(3)
Impressum