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

NAME

4     zip_source_write — write data to zip source
5

LIBRARY

7     libzip (-lzip)
8

SYNOPSIS

10     #include <zip.h>
11
12     zip_int64_t
13     zip_source_write(zip_source_t *source, const void *data,
14         zip_uint64_t len);
15

DESCRIPTION

17     The function zip_source_write() writes len bytes from the buffer data to
18     the zip source source at the current write offset.
19
20     The zip source source has to be prepared for writing by calling
21     zip_source_begin_write(3) first.
22

RETURN VALUES

24     Upon successful completion the number of bytes written is returned.  Oth‐
25     erwise, -1 is returned and the error information in source is set to
26     indicate the error.
27

SEE ALSO

29     libzip(3), zip_source(3), zip_source_begin_write(3),
30     zip_source_commit_write(3), zip_source_rollback_write(3),
31     zip_source_seek_write(3), zip_source_tell_write(3)
32

HISTORY

34     zip_source_write() was added in libzip 1.0.
35

AUTHORS

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