Imported Upstream version 1.4.0
[platform/upstream/libzip.git] / man / zip_add.man
1 .TH "ZIP_ADD" "3" "December 18, 2017" "NiH" "Library Functions Manual"
2 .nh
3 .if n .ad l
4 .SH "NAME"
5 \fBzip_add\fR,
6 \fBzip_replace\fR
7 \- add file to zip archive or replace file in zip archive (obsolete interface)
8 .SH "LIBRARY"
9 libzip (-lzip)
10 .SH "SYNOPSIS"
11 \fB#include <zip.h>\fR
12 .sp
13 \fIzip_int64_t\fR
14 .br
15 .PD 0
16 .HP 4n
17 \fBzip_add\fR(\fIzip_t\ *archive\fR, \fIconst\ char\ *name\fR, \fIzip_source_t\ *source\fR);
18 .PD
19 .PP
20 \fIint\fR
21 .br
22 .PD 0
23 .HP 4n
24 \fBzip_replace\fR(\fIzip_t\ *archive\fR, \fIzip_uint64_t\ index\fR, \fIzip_source_t\ *source\fR);
25 .PD
26 .SH "DESCRIPTION"
27 The function
28 \fBzip_add\fR()
29 is the obsolete version of
30 zip_file_add(3).
31 It is the same as calling
32 zip_file_add(3)
33 with an empty
34 \fIflags\fR
35 argument.
36 Similarly, the
37 \fBzip_replace\fR()
38 function is the obsolete version of
39 zip_file_replace(3).
40 It is the same as calling
41 zip_file_replace(3)
42 with an empty
43 \fIflags\fR
44 argument.
45 .SH "SEE ALSO"
46 libzip(3),
47 zip_file_add(3),
48 zip_file_replace(3)
49 .SH "HISTORY"
50 \fBzip_add\fR()
51 was added in libzip 0.6.
52 In libzip 0.10 the return type was changed from
53 \fIint\fR
54 to
55 \fIzip_int64_t\fR.
56 It was deprecated in libzip 0.11, use
57 \fBzip_file_add\fR()
58 instead.
59 .PP
60 \fBzip_replace\fR()
61 was added in libzip 0.6.
62 In libzip 0.10 the type of
63 \fIindex\fR
64 was changed from
65 \fIint\fR
66 to
67 \fIzip_uint64_t\fR.
68 It was deprecated in libzip 0.11, use
69 \fBzip_file_replace\fR()
70 instead.
71 .SH "AUTHORS"
72 Dieter Baron <\fIdillo@nih.at\fR>
73 and
74 Thomas Klausner <\fItk@giga.or.at\fR>