1ZIP_SOURCE_GET_ARGS(3) BSD Library Functions Manual ZIP_SOURCE_GET_ARGS(3)
2
4 ZIP_SOURCE_GET_ARGS — validate and cast arguments to source callback
5
7 libzip (-lzip)
8
10 #include <zip.h>
11
12 type *
13 ZIP_SOURCE_GET_ARGS(type, void *data, zip_uint64_t len,
14 zip_error_t *error);
15
17 The ZIP_SOURCE_GET_ARGS() macro casts data to a pointer to type.
18
20 On success, ZIP_SOURCE_GET_ARGS() returns data. In case of error, it
21 returns NULL and sets error.
22
24 ZIP_SOURCE_GET_ARGS() fails if:
25
26 [ZIP_ER_INVAL] len is less than the size of type
27
29 libzip(3), zip_source_function(3)
30
32 ZIP_SOURCE_GET_ARGS() was added in libzip 1.0.
33
35 Dieter Baron <dillo@nih.at> and Thomas Klausner <tk@giga.or.at>
36
37BSD December 18, 2017 BSD