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

NAME

4     zip_error_init, zip_error_init_with_code — initialize zip_error structure
5

LIBRARY

7     libzip (-lzip)
8

SYNOPSIS

10     #include <zip.h>
11
12     void
13     zip_error_init(zip_error_t *error);
14
15     void
16     zip_error_init_with_code(zip_error_t *error, int ze);
17

DESCRIPTION

19     The zip_error_init() function initializes the zip_error pointed to by
20     error.  *error must be allocated before calling zip_error_init().
21
22     The zip_error_init_with_code() function does the same, but additionally
23     sets the zip error code to ze and sets the system error code to the cur‐
24     rent errno(3) value, if appropriate.
25

SEE ALSO

27     libzip(3), zip_error_fini(3)
28

HISTORY

30     zip_error_init() and zip_error_init_with_code() were added in libzip 1.0.
31

AUTHORS

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