www.LinuxHowtos.org
ZIP_SOURCE_READ
Section: C Library Functions (3)Index Return to Main Contents
BSD mandoc
NAME
zip_source_read - read data from zip sourceLIBRARY
libzip -lzip)SYNOPSIS
In zip.h Ft zip_int64_t Fn zip_source_read zip_source_t *source void *data zip_uint64_t lenDESCRIPTION
The function Fn zip_source_read reads up to len bytes of data from source at the current read offset into the buffer dataThe zip source source has to be opened for reading by calling zip_source_open3 first.
RETURN VALUES
Upon successful completion the number of bytes read is returned. When Fn 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.SEE ALSO
libzip(3), zip_source5, zip_source_seek3, zip_source_tell3, zip_source_write3HISTORY
Fn zip_source_read was added in libzip 1.0.AUTHORS
An -nosplit An Dieter Baron Aq Mt dillo@nih.at and An Thomas Klausner Aq Mt wiz@gatalith.at