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

NAME

6       zip_error_to_str - get string representation of zip error
7

LIBRARY

9       libzip (-lzip)
10

SYNOPSIS

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

DESCRIPTION

17       The  zip_error_to_str  function  stores  a string describing the libzip
18       error code ze in the user-provided buffer buf which has size len.   The
19       buffer  is always NUL-terminated.  se should be the value of the global
20       variable errno at the time of the error or the zlib error code, depend‐
21       ing on ze.
22
23       zip_error_to_str  is  especially  useful if zip_open failed, since then
24       there is no is available to store the error  code;  otherwise  zip_str‐
25       error or zip_file_strerror are more convenient.
26

RETURN VALUES

28       zip_error_to_str  returns the number of characters that would have been
29       written to a sufficiently sized  buf,  excluding  the  terminating  NUL
30       character.
31

SEE ALSO

33       libzip(3),         zip_error_get(3),         zip_error_get_sys_type(3),
34       zip_file_error_get(3),  zip_file_strerror(3),   zip_open(3),   zip_str‐
35       error(3)
36

AUTHORS

38       Dieter Baron <dillo@giga.or.at> and Thomas Klausner <tk@giga.or.at>
39
40
41
42NiH                            November 24, 2004           ZIP_ERROR_TO_STR(3)
Impressum