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

NAME

4     zip_unchange — undo changes to file in zip archive
5

LIBRARY

7     libzip (-lzip)
8

SYNOPSIS

10     #include <zip.h>
11
12     int
13     zip_unchange(zip_t *archive, zip_uint64_t index);
14

DESCRIPTION

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

RETURN VALUES

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

ERRORS

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

SEE ALSO

31     libzip(3), zip_unchange_all(3), zip_unchange_archive(3)
32

HISTORY

34     zip_unchange() was added in libzip 0.6.  In libzip 0.10 the type of index
35     was changed from int to zip_uint64_t.
36

AUTHORS

38     Dieter Baron <dillo@nih.at> and Thomas Klausner <tk@giga.or.at>
39
40BSD                            December 18, 2017                           BSD
Impressum