1ZIP_SOURCE_SEEK_WRITE(3) BSD Library Functions Manual ZIP_SOURCE_SEEK_WRITE(3)
2
4 zip_source_seek_write — set write offset in zip source
5
7 libzip (-lzip)
8
10 #include <zip.h>
11
12 int
13 zip_source_seek_write(zip_source_t *source, zip_int64_t offset,
14 int whence);
15
17 The function zip_source_seek_write() sets the current write offset for
18 source. Just like in fseek(3), depending on the whence argument, the
19 offset is counted relative from:
20
21 SEEK_SET start of file
22
23 SEEK_CUR current write offset in file
24
25 SEEK_END end of file
26
28 Upon successful completion 0 is returned. Otherwise, -1 is returned and
29 the error information in source is set to indicate the error.
30
32 libzip(3), zip_source(3), zip_source_begin_write(3),
33 zip_source_commit_write(3), zip_source_rollback_write(3),
34 zip_source_tell_write(3), zip_source_write(3)
35
37 zip_source_seek_write() was added in libzip 1.0.
38
40 Dieter Baron <dillo@nih.at> and Thomas Klausner <tk@giga.or.at>
41
42BSD December 18, 2017 BSD