1ZIP_SOURCE_FILEP(3)        Library Functions Manual        ZIP_SOURCE_FILEP(3)
2
3
4

NAME

6       zip_source_filep - create data source from FILE *
7

LIBRARY

9       libzip (-lzip)
10

SYNOPSIS

12       struct  zip_source  * zip_source_filep(struct zip *archive, FILE *file,
13       off_t start, off_t len);
14

DESCRIPTION

16       The function zip_source_filep creates a zip source from a file  stream.
17       zip_source_filep  reads  len bytes from offset start from the open file
18       stream file.  If len is 0 or -1, the whole file (starting from start  )
19       is used.
20

RETURN VALUES

22       Upon successful completion, the created source is returned.  Otherwise,
23       NULL is returned and the error code in archive is set to  indicate  the
24       error.
25

ERRORS

27       zip_source_filep fails if:
28
29              [ZIP_ER_INVAL]
30                  file, start, or len are invalid.
31
32              [ZIP_ER_MEMORY]
33                  Required memory could not be allocated.
34

SEE ALSO

36       libzip(3),     zip_add(3),     zip_replace(3),    zip_source_buffer(3),
37       zip_source_file(3),     zip_source_free(3),     zip_source_function(3),
38       zip_source_zip(3)
39

AUTHORS

41       Dieter Baron <dillo@giga.or.at> and Thomas Klausner <tk@giga.or.at>
42
43
44
45NiH                              July 20, 2005             ZIP_SOURCE_FILEP(3)
Impressum