zzip_seek(3)

NAME
zzip_seek, zzip_seek32 - seek.

SYNOPSIS

#include <zzip/lib.h>

b'zzip_off_t\fInzzip_seek(ZZIP_FILE * fp, zzip_off_t offset, int whence)
b'long\fInzzip_seek32(ZZIP_FILE * fp, long offset, int whence)n'

DESCRIPTION
b'The zzip_seek function will perform a lseek(2) operation on a real/zipped file

b'It will try to seek to the offset specified by offset, relative to whence,which is one of SEEK_SET, SEEK_CUR or SEEK_END.

b"If the file-handle is wrapping a stat'able file then it will actually justperform a normal lseek(2)-call. Otherwise the relative offsetis calculated, negative offsets are transformed into positive onesby rewinding the file, and then data is read until the offset isreached. This can make the function terribly slow, but this ishow gzio implements it, so I'm not sure there is a better waywithout using the internals of the algorithm.n"

b' The zzip_seek32 function is provided for users who can not use any largefile-mode.n

AUTHOR
b'Guido Draheim <guidod@gmx.de>Tomi Ollila <Tomi.Ollila@iki.fi>

COPYRIGHT
b'Copyright (c) Guido Draheim, use under copyleft (LGPL,MPL)n'