Thomas Klausner | a5e9d4d | 2013-10-05 16:57:58 +0200 | [diff] [blame] | 1 | .TH "ZIP_GET_NUM_ENTRIES" "3" "August 1, 2012" "NiH" "Library Functions Manual" |
| 2 | .nh |
| 3 | .if n .ad l |
Thomas Klausner | 53784d6 | 2011-02-14 12:48:21 +0100 | [diff] [blame] | 4 | .SH "NAME" |
Thomas Klausner | a5e9d4d | 2013-10-05 16:57:58 +0200 | [diff] [blame] | 5 | \fBzip_get_num_entries\fR |
| 6 | \- get number of files in archive |
Thomas Klausner | 53784d6 | 2011-02-14 12:48:21 +0100 | [diff] [blame] | 7 | .SH "LIBRARY" |
| 8 | libzip (-lzip) |
| 9 | .SH "SYNOPSIS" |
Thomas Klausner | a5e9d4d | 2013-10-05 16:57:58 +0200 | [diff] [blame] | 10 | \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 Klausner | 53784d6 | 2011-02-14 12:48:21 +0100 | [diff] [blame] | 15 | .SH "DESCRIPTION" |
| 16 | The |
Thomas Klausner | a5e9d4d | 2013-10-05 16:57:58 +0200 | [diff] [blame] | 17 | \fBzip_get_num_entries\fR() |
Thomas Klausner | 53784d6 | 2011-02-14 12:48:21 +0100 | [diff] [blame] | 18 | function returns the number of files in |
Thomas Klausner | a5e9d4d | 2013-10-05 16:57:58 +0200 | [diff] [blame] | 19 | \fIarchive\fR. |
Thomas Klausner | 53784d6 | 2011-02-14 12:48:21 +0100 | [diff] [blame] | 20 | If |
Thomas Klausner | a5e9d4d | 2013-10-05 16:57:58 +0200 | [diff] [blame] | 21 | \fIflags\fR |
Thomas Klausner | 53784d6 | 2011-02-14 12:48:21 +0100 | [diff] [blame] | 22 | is set to |
Thomas Klausner | a5e9d4d | 2013-10-05 16:57:58 +0200 | [diff] [blame] | 23 | \fRZIP_FL_UNCHANGED\fR, |
Thomas Klausner | 53784d6 | 2011-02-14 12:48:21 +0100 | [diff] [blame] | 24 | the original number of entries is returned. |
| 25 | .SH "RETURN VALUES" |
Thomas Klausner | a5e9d4d | 2013-10-05 16:57:58 +0200 | [diff] [blame] | 26 | \fBzip_get_num_entries\fR() |
Thomas Klausner | 53784d6 | 2011-02-14 12:48:21 +0100 | [diff] [blame] | 27 | returns the number of files in the zip archive, |
| 28 | or \-1 if |
Thomas Klausner | a5e9d4d | 2013-10-05 16:57:58 +0200 | [diff] [blame] | 29 | \fIarchive\fR |
Thomas Klausner | 53784d6 | 2011-02-14 12:48:21 +0100 | [diff] [blame] | 30 | is |
Thomas Klausner | a5e9d4d | 2013-10-05 16:57:58 +0200 | [diff] [blame] | 31 | \fRNULL\fR. |
Thomas Klausner | 53784d6 | 2011-02-14 12:48:21 +0100 | [diff] [blame] | 32 | .SH "SEE ALSO" |
| 33 | libzip(3), |
| 34 | zip_fopen_index(3), |
| 35 | zip_stat_index(3) |
| 36 | .SH "AUTHORS" |
Thomas Klausner | a5e9d4d | 2013-10-05 16:57:58 +0200 | [diff] [blame] | 37 | Dieter Baron <\fIdillo@nih.at\fR> |
Thomas Klausner | 53784d6 | 2011-02-14 12:48:21 +0100 | [diff] [blame] | 38 | and |
Thomas Klausner | a5e9d4d | 2013-10-05 16:57:58 +0200 | [diff] [blame] | 39 | Thomas Klausner <\fItk@giga.or.at\fR> |