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

NAME

4     zip_error_to_data — convert zip_error to return value suitable for
5     ZIP_SOURCE_ERROR
6

LIBRARY

8     libzip (-lzip)
9

SYNOPSIS

11     #include <zip.h>
12
13     zip_int64_t
14     zip_error_to_data(const zip_error_t *ze, void *data, zip_uint64_t len);
15

DESCRIPTION

17     zip_error_to_data() function converts the zip_error ze into data suitable
18     as return value for ZIP_SOURCE_ERROR.  The data is written into the buf‐
19     fer data of size len.  If the buffer is not large enough to hold 2 ints,
20     an error is returned.
21

RETURN VALUES

23     zip_error_to_data() returns 2*(sizeof int) on success, and -1 on error.
24

SEE ALSO

26     libzip(3), zip_source_function(3)
27

HISTORY

29     zip_error_to_data() was added in libzip 1.0.
30

AUTHORS

32     Dieter Baron <dillo@nih.at> and Thomas Klausner <tk@giga.or.at>
33
34BSD                            December 18, 2017                           BSD
Impressum