|
NAMEzip_source_zip —
create data source from zip file
LIBRARYlibzip (-lzip)SYNOPSIS#include <zip.h>
zip_source_t *
DESCRIPTIONThe functionzip_source_zip () creates a zip source from
a file in a zip archive. The srcarchive argument is the
(open) zip archive containing the source zip file at index
srcidx. len bytes from offset
start will be used in the zip_source. If
len is 0 or -1, the rest of the file, starting from
start, is used. If start is zero
and len is -1, the whole file will be copied without
decompressing it.
Supported flags are:
RETURN VALUESUpon successful completion, the created source is returned. Otherwise,NULL is returned and the error code in
archive is set to indicate the error.
ERRORSzip_source_zip () fails if:
zip_stat_index () and
zip_fopen_index ().
SEE ALSOlibzip(3), zip_file_add(3), zip_file_replace(3), zip_source(3)HISTORYzip_source_zip () was added in libzip 1.0.
AUTHORSDieter Baron <dillo@nih.at> and Thomas Klausner <tk@giga.or.at>
Visit the GSP FreeBSD Man Page Interface. |