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

NAME

6       zzip_entry_data_offset, zzip_entry_fread_file_header,
7       zzip_entry_strdup_name - helper functions for (fseeko) zip access api
8

SYNOPSIS

10       #include <zzip/fseeko.h>
11
12       zzip_off_t zzip_entry_data_offset((ZZIP_ENTRY * entry));
13
14       static zzip_off_t
15                                                      zzip_entry_fread_file_header((ZZIP_ENTRY * entry, struct zzip_file_header *file_header));
16
17       zzip__new__ char * zzip_entry_strdup_name((ZZIP_ENTRY * entry));
18

DESCRIPTION

20       The zzip_entry_data_offset functions returns the seekval offset of the
21       data portion of the file referenced by the given zzip_entry. It
22       requires an intermediate check of the file_header structure (i.e. it
23       reads it from disk). After this call, the contained diskfile
24       readposition is already set to the data_offset returned here. On error
25       -1 is returned.
26
27       The zzip_entry_fread_file_header functions read the correspoding struct
28       zzip_file_header from the zip disk of the given "entry". The returned
29       off_t points to the end of the file_header where the current fseek
30       pointer has stopped. This is used to immediatly parse out any
31       filename/extras block following the file_header. The return value is
32       null on error.
33
34       The zzip_entry_strdup_name function is a big helper despite its little
35       name: in a zip file the encoded filenames are usually NOT
36       zero-terminated but for common usage with libc we need it that way.
37       Secondly, the filename SHOULD be present in the zip central directory
38       but if not then we fallback to the filename given in the file_header of
39       each compressed data portion.
40

AUTHOR

42       ยท   Guido Draheim <guidod@gmx.de>
43
45       Copyright (c) 2003,2004 Guido Draheim All rights reserved, use under
46       the restrictions of the Lesser GNU General Public License or
47       alternatively the restrictions of the Mozilla Public License 1.1
48
49
50
51zziplib                             0.13.62            ZZIP_ENTRY_DATA_OFFS(3)
Impressum