logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

ZIP_SOURCE_GET_ARGS — validate and cast arguments to source callback

Authors

       Dieter Baron <dillo@nih.at> and Thomas Klausner <wiz@gatalith.at>

Debian                                          December 18, 2017                         ZIP_SOURCE_GET_ARGS(3)

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 type

History

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);

See Also