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

NAME

6       zzip_read, zzip_fread -
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 replacement for read(2) will fill the given buffer with bytes from
20       the opened file. It will return the number of bytes read, so if the EOF
21       is encountered you will be prompted with the number of bytes actually
22       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) 1999,2000,2001,2002,2003 Guido Draheim All rights
33       reserved, use under the restrictions of the Lesser GNU General Public
34       License or alternatively the restrictions of the Mozilla Public License
35       1.1
36
37
38
39zziplib                             0.13.49                       ZZIP_READ(3)
Impressum