1ZZIP_SEEK(3)                 zziplib Function List                ZZIP_SEEK(3)
2
3
4

NAME

6       zzip_seek -
7

SYNOPSIS

9       #include <zzip/lib.h>
10
11       zzip_off_t zzip_seek((ZZIP_FILE * fp, zzip_off_t offset, int whence));
12

DESCRIPTION

14       The zzip_seek function will perform a lseek(2) operation on a
15       real/zipped file
16
17       It will try to seek to the offset specified by offset, relative to
18       whence, which is one of SEEK_SET, SEEK_CUR or SEEK_END.
19
20       If the file-handle is wrapping a stat'able file then it will actually
21       just perform a normal lseek(2)-call. Otherwise the relative offset is
22       calculated, negative offsets are transformed into positive ones by
23       rewinding the file, and then data is read until the offset is reached.
24       This can make the function terribly slow, but this is how gzio
25       implements it, so I'm not sure there is a better way without using the
26       internals of the algorithm.
27

AUTHOR

29       ยท   Guido Draheim <guidod@gmx.de> Tomi Ollila <Tomi.Ollila@iki.fi>
30
32       Copyright (c) 1999,2000,2001,2002,2003 Guido Draheim All rights
33       reserved, use under the restrictions of the Lesser GNU General Public
34       License or alternatively the restrictions of the Mozilla Public License
35       1.1
36
37
38
39zziplib                             0.13.49                       ZZIP_SEEK(3)
Impressum