1ZIP_GET_ARCHIVE_FLAG(3) BSD Library Functions Manual ZIP_GET_ARCHIVE_FLAG(3)
2
4 zip_get_archive_flag — get status flags for zip
5
7 libzip (-lzip)
8
10 #include <zip.h>
11
12 int
13 zip_get_archive_flag(zip_t *archive, zip_flags_t flag,
14 zip_flags_t flags);
15
17 The zip_get_archive_flag() function returns if the flag flag is set for
18 the archive archive. The archive flags might have been changed with
19 zip_set_archive_flag(); if flags is set to ZIP_FL_UNCHANGED, the original
20 unchanged flags are tested.
21
22 Supported flags are:
23
24 ZIP_AFL_RDONLY The archive is read-only.
25
27 zip_get_archive_flag() returns 1 if flag is set for archive, 0 if not,
28 and -1 if an error occurred.
29
31 libzip(3), zip_set_archive_flag(3)
32
34 zip_get_archive_flag() was added in libzip 0.9. In libzip 0.11 the type
35 of flag was changed from int to zip_flags_t m and the type of flags was
36 changed from int to zip_flags_t.
37
39 Dieter Baron <dillo@nih.at> and Thomas Klausner <tk@giga.or.at>
40
41BSD December 18, 2017 BSD