Imported Upstream version 1.1.3
[platform/upstream/libzip.git] / man / zip_error_get_sys_type.man
1 .TH "ZIP_ERROR_GET_SYS_TYPE" "3" "December 2, 2014" "NiH" "Library Functions Manual"
2 .nh
3 .if n .ad l
4 .SH "NAME"
5 \fBzip_error_get_sys_type\fR
6 \- get type of system error code
7 .SH "LIBRARY"
8 libzip (-lzip)
9 .SH "SYNOPSIS"
10 \fB#include <zip.h>\fR
11 .sp
12 \fIint\fR
13 .PD 0
14 .HP 4n
15 \fBzip_error_get_sys_type\fR(\fIint\ ze\fR);
16 .PD
17 .SH "DESCRIPTION"
18 The function
19 \fBzip_error_get_sys_type\fR()
20 is deprecated; use
21 zip_error_init_with_code(3)
22 and
23 zip_error_system_type(3)
24 instead.
25 .PP
26 Replace
27 .nf
28 .sp
29 .RS 6n
30 int i = zip_error_get_sys_type(ze);
31 .RE
32 .fi
33 with
34 .nf
35 .sp
36 .RS 6n
37 zip_error_t error;
38 zip_error_init_with_code(&error, ze);
39 int i = zip_error_system_type(&error);
40 .RE
41 .fi
42 .SH "SEE ALSO"
43 libzip(3),
44 zip_error_init_with_code(3),
45 zip_error_system_type(3)
46 .SH "AUTHORS"
47 Dieter Baron <\fIdillo@nih.at\fR>
48 and
49 Thomas Klausner <\fItk@giga.or.at\fR>