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

NAME

6       zip_get_file_extra - get extra field for file in zip
7

LIBRARY

9       libzip (-lzip)
10

SYNOPSIS

12       #include <zip.h>
13
14       const  char  *  zip_get_file_extra(struct  zip  *archive,  zip_uint64_t
15       index); "int *lenp" "int flags"
16

DESCRIPTION

18       The zip_get_file_extra function returns the extra field for the file at
19       position index in the zip archive.  This pointer should not be modified
20       or free(3) Ap d.  If lenp is not NULL, the integer to which  it  points
21       will  be  set  to  the  length  of  the  extra.   If  flags  is  set to
22       ZIP_FL_UNCHANGED, the original unchanged extra field is returned.
23

RETURN VALUES

25       Upon successful completion, a pointer to the extra field  is  returned,
26       or  NULL  if  there  is  no  extra field.  In case of an error, NULL is
27       returned and the error code in archive is set to indicate the error.
28

ERRORS

30       zip_get_file_extra fails if:
31
32              [ZIP_ER_INVAL]
33                  index is not a valid file index in archive.
34

SEE ALSO

36       libzip(3), zip_set_file_extra(3)
37

AUTHORS

39       Dieter Baron <dillo@giga.or.at> and Thomas Klausner <tk@giga.or.at>
40
41
42
43NiH                            February 13, 2011         ZIP_GET_FILE_EXTRA(3)
Impressum