1ZIP_DELETE(3) BSD Library Functions Manual ZIP_DELETE(3)
2
4 zip_delete — delete file from zip archive
5
7 libzip (-lzip)
8
10 #include <zip.h>
11
12 int
13 zip_delete(zip_t *archive, zip_uint64_t index);
14
16 The file at position index in the zip archive archive is marked as
17 deleted.
18
20 Upon successful completion 0 is returned. Otherwise, -1 is returned and
21 the error code in archive is set to indicate the error.
22
24 zip_delete() fails if:
25
26 [ZIP_ER_INVAL] index is not a valid file index in archive.
27
29 libzip(3), zip_unchange(3)
30
32 zip_delete() was added in libzip 0.6. In libzip 0.10 the type of index
33 was changed from int to zip_uint64_t.
34
36 Dieter Baron <dillo@nih.at> and Thomas Klausner <tk@giga.or.at>
37
38BSD December 18, 2017 BSD