Manpages - zip_source_seek_compute_offset.3
libzip (-lzip)
Use this function to compute the offset for a
or
command.
and
are the arguments to the source callback,
is the current offset and
is the length of the source data or, for
the amount of data written.
On success, it returns the new offset, on error it returns -1 and sets
fails if:
One of the arguments is invalid or the seek would place the offset outside the data.
was added in libzip 1.0.
and