zip_source_read3
Read data from zip source
Usage
#include <zip.h>
zip_int64_t
zip_source_read(zip_source_t *source, void *data, zip_uint64_t len);
Library
libzip (-lzip)
Overview
The function zip_source_read() reads up to len bytes of data from source at the current read offset into the buffer data.
The zip source source has to be opened for reading by calling zip_source_open(3) first.
Return values
Upon successful completion the number of bytes read is returned. When zip_source_read() is called after reaching the end of the file, 0 is returned. Otherwise, -1 is returned and the error information in source is set to indicate the error.
Releases
6 releases since Debian 9 (Stretch); the text changed 3 times.