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

NAME

4     ZIP_SOURCE_GET_ARGS — validate and cast arguments to source callback
5

LIBRARY

7     libzip (-lzip)
8

SYNOPSIS

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

DESCRIPTION

17     The ZIP_SOURCE_GET_ARGS() macro casts data to a pointer to type.
18

RETURN VALUES

20     On success, ZIP_SOURCE_GET_ARGS() returns data.  In case of error, it
21     returns NULL and sets error.
22

ERRORS

24     ZIP_SOURCE_GET_ARGS() fails if:
25
26     [ZIP_ER_INVAL]     len is less than the size of type
27

SEE ALSO

29     libzip(3), zip_source_function(3)
30

HISTORY

32     ZIP_SOURCE_GET_ARGS() was added in libzip 1.0.
33

AUTHORS

35     Dieter Baron <dillo@nih.at> and Thomas Klausner <tk@giga.or.at>
36
37BSD                            December 18, 2017                           BSD
Impressum