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

NAME

4     zip_source_seek — set read offset in zip source
5

LIBRARY

7     libzip (-lzip)
8

SYNOPSIS

10     #include <zip.h>
11
12     int
13     zip_source_seek(zip_source_t *source, zip_int64_t offset, int whence);
14

DESCRIPTION

16     The function zip_source_seek() sets the current read offset for source.
17     Just like in fseek(3), depending on the whence argument, the offset is
18     counted relative from:
19
20           SEEK_SET    start of file
21
22           SEEK_CUR    current read offset in file
23
24           SEEK_END    end of file
25

RETURN VALUES

27     Upon successful completion 0 is returned.  Otherwise, -1 is returned and
28     the error information in source is set to indicate the error.
29

SEE ALSO

31     libzip(3), zip_source(3), zip_source_read(3), zip_source_tell(3)
32

HISTORY

34     zip_source_seek() 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