blob: b06ca3648c3a608396930c1507bc19a507b76118 [file] [log] [blame]
Thomas Klausnera5e9d4d2013-10-05 16:57:58 +02001.TH "ZIP_GET_NUM_ENTRIES" "3" "August 1, 2012" "NiH" "Library Functions Manual"
2.nh
3.if n .ad l
Thomas Klausner53784d62011-02-14 12:48:21 +01004.SH "NAME"
Thomas Klausnera5e9d4d2013-10-05 16:57:58 +02005\fBzip_get_num_entries\fR
6\- get number of files in archive
Thomas Klausner53784d62011-02-14 12:48:21 +01007.SH "LIBRARY"
8libzip (-lzip)
9.SH "SYNOPSIS"
Thomas Klausnera5e9d4d2013-10-05 16:57:58 +020010\fB#include <zip.h>\fR
11.sp
12\fIzip_int64_t\fR
13.br
14\fBzip_get_num_entries\fR(\fIstruct zip *archive\fR,\ \fIzip_flags_t flags\fR);
Thomas Klausner53784d62011-02-14 12:48:21 +010015.SH "DESCRIPTION"
16The
Thomas Klausnera5e9d4d2013-10-05 16:57:58 +020017\fBzip_get_num_entries\fR()
Thomas Klausner53784d62011-02-14 12:48:21 +010018function returns the number of files in
Thomas Klausnera5e9d4d2013-10-05 16:57:58 +020019\fIarchive\fR.
Thomas Klausner53784d62011-02-14 12:48:21 +010020If
Thomas Klausnera5e9d4d2013-10-05 16:57:58 +020021\fIflags\fR
Thomas Klausner53784d62011-02-14 12:48:21 +010022is set to
Thomas Klausnera5e9d4d2013-10-05 16:57:58 +020023\fRZIP_FL_UNCHANGED\fR,
Thomas Klausner53784d62011-02-14 12:48:21 +010024the original number of entries is returned.
25.SH "RETURN VALUES"
Thomas Klausnera5e9d4d2013-10-05 16:57:58 +020026\fBzip_get_num_entries\fR()
Thomas Klausner53784d62011-02-14 12:48:21 +010027returns the number of files in the zip archive,
28or \-1 if
Thomas Klausnera5e9d4d2013-10-05 16:57:58 +020029\fIarchive\fR
Thomas Klausner53784d62011-02-14 12:48:21 +010030is
Thomas Klausnera5e9d4d2013-10-05 16:57:58 +020031\fRNULL\fR.
Thomas Klausner53784d62011-02-14 12:48:21 +010032.SH "SEE ALSO"
33libzip(3),
34zip_fopen_index(3),
35zip_stat_index(3)
36.SH "AUTHORS"
Thomas Klausnera5e9d4d2013-10-05 16:57:58 +020037Dieter Baron <\fIdillo@nih.at\fR>
Thomas Klausner53784d62011-02-14 12:48:21 +010038and
Thomas Klausnera5e9d4d2013-10-05 16:57:58 +020039Thomas Klausner <\fItk@giga.or.at\fR>