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

NAME

6       zip_name_locate - get index of file by name
7

LIBRARY

9       libzip (-lzip)
10

SYNOPSIS

12       #include <zip.h>
13
14       int zip_name_locate(struct zip *archive, const char *fname, int flags);
15

DESCRIPTION

17       The  zip_name_locate function returns the index of the file named fname
18       in archive.  If archive does not contain a file with that name,  -1  is
19       returned.   The  are specified by or'ing the following values, or 0 for
20       none of them.
21
22              ZIP_FL_NOCASE  Ignore case distinctions.
23
24              ZIP_FL_NODIR   Ignore directory part of file name in archive.
25

RETURN VALUES

27       zip_name_locate returns the index of the file named fname or -1, if ar‐
28       chive does not contain an entry of that name.
29

ERRORS

31       The  zip_name_locate  function  fails and sets the error information to
32       ZIP_ER_NOENT if no entry of the name fname is found in the archive.  If
33       one  of  the  arguments  is  invalid,  the  error information is set to
34       ZIP_ER_INVAL.
35

SEE ALSO

37       libzip(3), zip_get_name(3)
38

AUTHORS

40       Dieter Baron <dillo@giga.or.at> and Thomas Klausner <tk@giga.or.at>
41
42
43
44NiH                             October 4, 2006             ZIP_NAME_LOCATE(3)
Impressum