Imported Upstream version 1.1.3
[platform/upstream/libzip.git] / man / zip_add.man
1 .TH "ZIP_ADD" "3" "October 6, 2012" "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
8 .SH "LIBRARY"
9 libzip (-lzip)
10 .SH "SYNOPSIS"
11 \fB#include <zip.h>\fR
12 .sp
13 \fIzip_int64_t\fR
14 .PD 0
15 .HP 4n
16 \fBzip_add\fR(\fIzip_t\ *archive\fR, \fIconst\ char\ *name\fR, \fIzip_source_t\ *source\fR);
17 .PD
18 .PP
19 \fIint\fR
20 .PD 0
21 .HP 4n
22 \fBzip_replace\fR(\fIzip_t\ *archive\fR, \fIzip_uint64_t\ index\fR, \fIzip_source_t\ *source\fR);
23 .PD
24 .SH "DESCRIPTION"
25 The function
26 \fBzip_add\fR()
27 is the obsolete version of
28 zip_file_add(3).
29 It is the same as calling
30 zip_file_add(3)
31 with an empty
32 \fIflags\fR
33 argument.
34 Similarly, the
35 \fBzip_replace\fR()
36 function is the obsolete version of
37 zip_file_replace(3).
38 It is the same as calling
39 zip_file_replace(3)
40 with an empty
41 \fIflags\fR
42 argument.
43 .SH "SEE ALSO"
44 libzip(3),
45 zip_file_add(3),
46 zip_file_replace(3)
47 .SH "AUTHORS"
48 Dieter Baron <\fIdillo@nih.at\fR>
49 and
50 Thomas Klausner <\fItk@giga.or.at\fR>