1ZIP_ADD(3)               BSD Library Functions Manual               ZIP_ADD(3)
2

NAME

4     zip_add, zip_replace — add file to zip archive or replace file in zip ar‐
5     chive (obsolete interface)
6

LIBRARY

8     libzip (-lzip)
9

SYNOPSIS

11     #include <zip.h>
12
13     zip_int64_t
14     zip_add(zip_t *archive, const char *name, zip_source_t *source);
15
16     int
17     zip_replace(zip_t *archive, zip_uint64_t index, zip_source_t *source);
18

DESCRIPTION

20     The function zip_add() is the obsolete version of zip_file_add(3).  It is
21     the same as calling zip_file_add(3) with an empty flags argument.  Simi‐
22     larly, the zip_replace() function is the obsolete version of
23     zip_file_replace(3).  It is the same as calling zip_file_replace(3) with
24     an empty flags argument.
25

SEE ALSO

27     libzip(3), zip_file_add(3), zip_file_replace(3)
28

HISTORY

30     zip_add() was added in libzip 0.6.  In libzip 0.10 the return type was
31     changed from int to zip_int64_t.  It was deprecated in libzip 0.11, use
32     zip_file_add() instead.
33
34     zip_replace() was added in libzip 0.6.  In libzip 0.10 the type of index
35     was changed from int to zip_uint64_t.  It was deprecated in libzip 0.11,
36     use zip_file_replace() instead.
37

AUTHORS

39     Dieter Baron <dillo@nih.at> and Thomas Klausner <tk@giga.or.at>
40
41BSD                            December 18, 2017                           BSD
Impressum