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

NAME

6       zzip_file_read - read data.
7

SYNOPSIS

9       #include <zzip/lib.h>
10
11       zzip_ssize_t
12                                   zzip_file_read((ZZIP_FILE * fp, void *buf, zzip_size_t len));
13

DESCRIPTION

15       The zzip_file_read function reads data from zip-contained file.
16
17       This fuction works like read(2) and will fill the given buffer with
18       bytes from the opened file. It will return the number of bytes read, so
19       if the EOF is encountered you will be prompted with the number of bytes
20       actually read.
21
22       This is the routines that needs the buf32k buffer, and it would have
23       need for much more polishing but it does already work quite well.
24
25       Note: the 32K buffer is rather big. The original inflate-algorithm
26       required just that but the latest zlib would work just fine with a
27       smaller buffer.
28

AUTHOR

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