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

NAME

6       zip_unchange - undo changes to file in zip archive
7

LIBRARY

9       libzip (-lzip)
10

SYNOPSIS

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

DESCRIPTION

17       Changes to the file at position index are reverted.
18

RETURN VALUES

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

ERRORS

24       zip_unchange fails if:
25
26              [ZIP_ER_EXISTS]
27                  Unchanging the name would result in a duplicate name in  the
28                  archive.
29
30              [ZIP_ER_INVAL]
31                  index is not a valid file index in zip.
32

SEE ALSO

34       libzip(3), zip_unchange_all(3), zip_unchange_archive(3)
35

AUTHORS

37       Dieter Baron <dillo@giga.or.at> and Thomas Klausner <tk@giga.or.at>
38
39
40
41NiH                             April 23, 2006                 ZIP_UNCHANGE(3)
Impressum