1ZZIP_FILE_READ(3) zziplib Function List ZZIP_FILE_READ(3)
2
3
4
6 zzip_file_read -
7
9 #include <zzip/lib.h>
10
11 zzip_ssize_t
12 zzip_file_read((ZZIP_FILE * fp, void * buf, zzip_size_t len));
13
15 The zzip_file_read functions read data from zip-contained file.
16
17 It works like read(2) and will fill the given buffer with bytes from
18 the opened file. It will return the number of bytes read, so if the EOF
19 is encountered you will be prompted with the number of bytes actually
20 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
30 ยท Guido Draheim <guidod@gmx.de> Tomi Ollila <Tomi.Ollila@iki.fi>
31
33 Copyright (c) 1999,2000,2001,2002,2003 Guido Draheim All rights
34 reserved, use under the restrictions of the Lesser GNU General Public
35 License or alternatively the restrictions of the Mozilla Public License
36 1.1
37
38
39
40zziplib 0.13.49 ZZIP_FILE_READ(3)