Imported Upstream version 1.1.3
[platform/upstream/libzip.git] / man / zip_error_get.man
1 .TH "ZIP_ERROR_GET" "3" "December 2, 2014" "NiH" "Library Functions Manual"
2 .nh
3 .if n .ad l
4 .SH "NAME"
5 \fBzip_error_get\fR,
6 \fBzip_file_error_get\fR
7 \- get error codes for archive or file
8 .SH "LIBRARY"
9 libzip (-lzip)
10 .SH "SYNOPSIS"
11 \fB#include <zip.h>\fR
12 .sp
13 \fIvoid\fR
14 .PD 0
15 .HP 4n
16 \fBzip_error_get\fR(\fIzip_t\ *archive\fR, \fIint\ *zep\fR, \fIint\ *sep\fR);
17 .PD
18 .PP
19 \fIvoid\fR
20 .PD 0
21 .HP 4n
22 \fBzip_file_error_get\fR(\fIzip_file_t\ *file\fR, \fIint\ *zep\fR, \fIint\ *sep\fR);
23 .PD
24 .SH "DESCRIPTION"
25 The functions
26 \fBzip_error_get\fR()
27 and
28 \fBzip_file_error_get\fR()
29 are deprecated.
30 Use
31 zip_error_code_system(3),
32 zip_error_code_zip(3),
33 zip_file_get_error(3),
34 and
35 zip_get_error(3)
36 instead.
37 .PP
38 For
39 \fBzip_error_get\fR(),
40 replace
41 .nf
42 .sp
43 .RS 6n
44 int ze, se;
45 zip_error_get(za, &ze, &se);
46 .RE
47 .fi
48 with
49 .nf
50 .sp
51 .RS 6n
52 int ze, se;
53 zip_error_t *error = zip_get_error(za);
54 ze = zip_error_code_zip(error);
55 se = zip_error_code_system(error);
56 .RE
57 .fi
58 For
59 \fBzip_file_error_get\fR(),
60 replace
61 .nf
62 .sp
63 .RS 6n
64 int ze, se;
65 zip_file_error_get(zf, &ze, &se);
66 .RE
67 .fi
68 with
69 .nf
70 .sp
71 .RS 6n
72 int ze, se;
73 zip_error_t *error = zip_file_get_error(zf);
74 ze = zip_error_code_zip(error);
75 se = zip_error_code_system(error);
76 .RE
77 .fi
78 .SH "SEE ALSO"
79 libzip(3),
80 zip_error_code_system(3),
81 zip_error_code_zip(3),
82 zip_file_get_error(3),
83 zip_get_error(3)
84 .SH "AUTHORS"
85 Dieter Baron <\fIdillo@nih.at\fR>
86 and
87 Thomas Klausner <\fItk@giga.or.at\fR>