| <!DOCTYPE html> |
| <html> |
| <head> |
| <meta charset="utf-8"/> |
| <style> |
| table.head, table.foot { width: 100%; } |
| td.head-rtitle, td.foot-os { text-align: right; } |
| td.head-vol { text-align: center; } |
| div.Pp { margin: 1ex 0ex; } |
| </style> |
| <link rel="stylesheet" href="../nih-man.css" type="text/css" media="all"/> |
| <title>ZIP_GET_NUM_ENTRIES(3)</title> |
| </head> |
| <body> |
| <table class="head"> |
| <tr> |
| <td class="head-ltitle">ZIP_GET_NUM_ENTRIES(3)</td> |
| <td class="head-vol">Library Functions Manual</td> |
| <td class="head-rtitle">ZIP_GET_NUM_ENTRIES(3)</td> |
| </tr> |
| </table> |
| <div class="manual-text"> |
| <h1 class="Sh" id="NAME">NAME</h1> |
| <b class="Nm">zip_get_num_entries</b> — <span class="Nd">get number of |
| files in archive</span> |
| <h1 class="Sh" id="LIBRARY">LIBRARY</h1> |
| libzip (-lzip) |
| <h1 class="Sh" id="SYNOPSIS">SYNOPSIS</h1> |
| <b class="In">#include <<a class="In">zip.h</a>></b> |
| <div class="Pp"></div> |
| <var class="Ft">zip_int64_t</var> |
| <br/> |
| <b class="Fn">zip_get_num_entries</b>(<var class="Fa" style="white-space: nowrap;">zip_t |
| *archive</var>, <var class="Fa" style="white-space: nowrap;">zip_flags_t |
| flags</var>); |
| <h1 class="Sh" id="DESCRIPTION">DESCRIPTION</h1> |
| The <b class="Fn">zip_get_num_entries</b>() function returns the number of files |
| in <var class="Ar">archive</var>. If <var class="Ar">flags</var> is set to |
| <code class="Dv">ZIP_FL_UNCHANGED</code>, the original number of entries is |
| returned. |
| <h1 class="Sh" id="RETURN_VALUES">RETURN VALUES</h1> |
| <b class="Fn">zip_get_num_entries</b>() returns the number of files in the zip |
| archive, or -1 if <var class="Ar">archive</var> is |
| <code class="Dv">NULL</code>. |
| <h1 class="Sh" id="SEE_ALSO">SEE ALSO</h1> |
| <a class="Xr" href="libzip.html">libzip(3)</a>, |
| <a class="Xr" href="zip_fopen_index.html">zip_fopen_index(3)</a>, |
| <a class="Xr" href="zip_stat_index.html">zip_stat_index(3)</a> |
| <h1 class="Sh" id="HISTORY">HISTORY</h1> |
| <b class="Fn">zip_get_num_entries</b>() was added in libzip 0.10. In libzip 0.11 |
| the return type was changed from <var class="Vt">zip_uint64_t</var> to |
| <var class="Vt">zip_int64_t</var>. In libzip 0.11 the type of |
| <var class="Ar">flags</var> was changed from <var class="Vt">int</var> to |
| <var class="Vt">zip_flags_t</var>. |
| <h1 class="Sh" id="AUTHORS">AUTHORS</h1> |
| <span class="An">Dieter Baron</span> |
| <<a class="Mt" href="mailto:dillo@nih.at">dillo@nih.at</a>> and |
| <span class="An">Thomas Klausner</span> |
| <<a class="Mt" href="mailto:tk@giga.or.at">tk@giga.or.at</a>></div> |
| <table class="foot"> |
| <tr> |
| <td class="foot-date">December 18, 2017</td> |
| <td class="foot-os">NetBSD 8.99.14</td> |
| </tr> |
| </table> |
| </body> |
| </html> |