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

NAME

4     zip_error_to_str — get string representation of zip error (obsolete
5     interface)
6

LIBRARY

8     libzip (-lzip)
9

SYNOPSIS

11     #include <zip.h>
12
13     int
14     zip_error_to_str(char *buf, zip_uint64_t len, int ze, int se);
15

DESCRIPTION

17     The function zip_error_to_str() is deprecated; use
18     zip_error_init_with_code(3) and zip_error_strerror(3) instead.
19
20     Replace
21
22           char buf[BUFSIZE];
23           zip_error_to_str(buf, sizeof(buf), ze, se);
24           printf("%s", buf);
25     with
26
27           zip_error_t error;
28           zip_error_init_with_code(&error, ze);
29           printf("%s", zip_error_strerror(&error));
30           zip_error_fini(&error);
31

SEE ALSO

33     libzip(3), zip_error_init_with_code(3), zip_error_strerror(3)
34

HISTORY

36     zip_error_to_str() was added in libzip 0.6.  In libzip 0.10 the type of
37     len was changed from size_t to zip_uint64_t.  It was deprecated in libzip
38     1.0, use zip_error_init_with_code() and zip_error_strerror() instead.
39

AUTHORS

41     Dieter Baron <dillo@nih.at> and Thomas Klausner <tk@giga.or.at>
42
43BSD                            December 18, 2017                           BSD
Impressum