1ZIP_SOURCE_READ(3)       BSD Library Functions Manual       ZIP_SOURCE_READ(3)
2

NAME

4     zip_source_read — read data from zip source
5

LIBRARY

7     libzip (-lzip)
8

SYNOPSIS

10     #include <zip.h>
11
12     zip_int64_t
13     zip_source_read(zip_source_t *source, void *data, zip_uint64_t len);
14

DESCRIPTION

16     The function zip_source_read() reads up to len bytes of data from source
17     at the current read offset into the buffer data.
18
19     The zip source source has to be opened for reading by calling
20     zip_source_open(3) first.
21

RETURN VALUES

23     Upon successful completion the number of bytes read is returned.  Upon
24     reading end-of-file, zero is returned.  Otherwise, -1 is returned and the
25     error information in source is set to indicate the error.
26

SEE ALSO

28     libzip(3), zip_source(3), zip_source_seek(3), zip_source_tell(3),
29     zip_source_write(3)
30

HISTORY

32     zip_source_read() was added in libzip 1.0.
33

AUTHORS

35     Dieter Baron <dillo@nih.at> and Thomas Klausner <tk@giga.or.at>
36
37BSD                            December 18, 2017                           BSD
Impressum