1ZIP_SOURCE_TELL(3) BSD Library Functions Manual ZIP_SOURCE_TELL(3)
2
4 zip_source_tell — report current read offset in zip source
5
7 libzip (-lzip)
8
10 #include <zip.h>
11
12 zip_int64_t
13 zip_source_tell(zip_source_t *source);
14
16 The function zip_source_tell() returns the current read offset for
17 source. The return value can be passed to zip_source_seek(3) with whence
18 set to SEEK_SET to return to the same location in the source.
19
21 Upon successful completion the current read offset is returned. Other‐
22 wise, -1 is returned and the error information in source is set to indi‐
23 cate the error.
24
26 libzip(3), zip_source(3), zip_source_read(3), zip_source_tell_write(3)
27
29 zip_source_tell() was added in libzip 1.0.
30
32 Dieter Baron <dillo@nih.at> and Thomas Klausner <tk@giga.or.at>
33
34BSD December 18, 2017 BSD