Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

zip_get_name(3) [debian man page]

ZIP_GET_NAME(3) 					     Library Functions Manual						   ZIP_GET_NAME(3)

NAME
zip_get_name - get name of file by index LIBRARY
libzip (-lzip) SYNOPSIS
#include <zip.h> const char * zip_get_name(struct zip *archive, int index, int flags); DESCRIPTION
The zip_get_name function returns the name of the file at position index in archive. If flags is set to ZIP_FL_UNCHANGED, the original unchanged filename is returned. The returned string must not be modified or freed, and becomes invalid when archive is closed. RETURN VALUES
Upon successful completion, a pointer to the name is returned. Otherwise, NULL and the error code in archive is set to indicate the error. ERRORS
zip_get_name fails if: [ZIP_ER_DELETED] index refers to a file that has been deleted (see zip_delete(3) ). [ZIP_ER_INVAL] index is not a valid file index in archive, or index points to an added file and ZIP_FL_UNCHANGED is set. SEE ALSO
libzip(3), zip_name_locate(3) AUTHORS
Dieter Baron <dillo@giga.or.at> and Thomas Klausner <tk@giga.or.at> NiH January 20, 2005 ZIP_GET_NAME(3)

Check Out this Related Man Page

ZIP_NAME_LOCATE(3)					     Library Functions Manual						ZIP_NAME_LOCATE(3)

NAME
zip_name_locate - get index of file by name LIBRARY
libzip (-lzip) SYNOPSIS
#include <zip.h> int zip_name_locate(struct zip *archive, const char *fname, int flags); DESCRIPTION
The zip_name_locate function returns the index of the file named fname in archive. If archive does not contain a file with that name, -1 is returned. The are specified by or'ing the following values, or 0 for none of them. ZIP_FL_NOCASE Ignore case distinctions. ZIP_FL_NODIR Ignore directory part of file name in archive. RETURN VALUES
zip_name_locate returns the index of the file named fname or -1, if archive does not contain an entry of that name. ERRORS
The zip_name_locate function fails and sets the error information to ZIP_ER_NOENT if no entry of the name fname is found in the archive. If one of the arguments is invalid, the error information is set to ZIP_ER_INVAL. SEE ALSO
libzip(3), zip_get_name(3) AUTHORS
Dieter Baron <dillo@giga.or.at> and Thomas Klausner <tk@giga.or.at> NiH October 4, 2006 ZIP_NAME_LOCATE(3)
Man Page