zzip_dir_stat(3)

NAME
zzip_dir_stat, zzip_file_stat, zzip_fstat - get meta infornation on a zipped element.

SYNOPSIS

#include <zzip/lib.h>

b'int\fInzzip_dir_stat(ZZIP_DIR * dir, zzip_char_t * name, ZZIP_STAT * zs, int flags)
b'int\fInzzip_file_stat(ZZIP_FILE * file, ZZIP_STAT * zs)
b'int\fInzzip_fstat(ZZIP_FILE * file, ZZIP_STAT * zs)n'

DESCRIPTION
b' The zzip_dir_stat function obtains information about a filename in an opened zip-archive without opening that file first. Mostly used to obtain the uncompressed size of a file inside a zip-archive. see zzip_dir_open.n'

b' The zzip_file_stat function will obtain information about a opened file _within_ a zip-archive. The file is supposed to be open (otherwise -1 is returned). The st_size stat-member contains the uncompressed size. The optional d_name is never set here. n'

b' The zzip_fstat function will obtain information about a opened file which may beeither real/zipped. The file is supposed to be open (otherwise -1 is returned). The st_size stat-member contains the uncompressed size. The optional d_name is never set here. For a real file, we do set thed_csize := st_size and d_compr := 0 for meaningful defaults.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'