ZIP_SOURCE_GET_ARGS — validate and cast arguments to source callback
Contents
Description
The ZIP_SOURCE_GET_ARGS() macro casts data to a pointer to type.
Errors
ZIP_SOURCE_GET_ARGS() fails if:
[ZIP_ER_INVAL] len is less than the size of typeHistory
ZIP_SOURCE_GET_ARGS() was added in libzip 1.0.
Library
libzip (-lzip)
Name
ZIP_SOURCE_GET_ARGS — validate and cast arguments to source callback
Return Values
On success, ZIP_SOURCE_GET_ARGS() returns data. In case of error, it returns NULL and sets error.
See Also
libzip(3), zip_source_function(3)
Synopsis
#include<zip.h>type*ZIP_SOURCE_GET_ARGS(type, void*data, zip_uint64_tlen, zip_error_t*error);
