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

NAME

6       zip_rename - rename file in zip archive
7

LIBRARY

9       libzip (-lzip)
10

SYNOPSIS

12       #include <zip.h>
13
14       int zip_rename(struct zip *archive, int index, const char *name);
15

DESCRIPTION

17       The  file  at  position  index in the zip archive archive is renamed to
18       name.
19

RETURN VALUES

21       Upon successful completion 0 is returned.  Otherwise,  -1  is  returned
22       and the error code in archive is set to indicate the error.
23

ERRORS

25       zip_rename fails if:
26
27              [ZIP_ER_EXISTS]
28                  There is already a file called name in the archive.
29
30              [ZIP_ER_INVAL]
31                  index is not a valid file index in archive.
32

SEE ALSO

34       libzip(3), zip_unchange(3)
35

AUTHORS

37       Dieter Baron <dillo@giga.or.at> and Thomas Klausner <tk@giga.or.at>
38
39
40
41NiH                            November 30, 2003                 ZIP_RENAME(3)
Impressum