Mention that passing local|central at the same time might give a different value than local+central.
diff --git a/man/zip_file_extra_fields_count.man b/man/zip_file_extra_fields_count.man index 89f8ca3..997ff3b 100644 --- a/man/zip_file_extra_fields_count.man +++ b/man/zip_file_extra_fields_count.man
@@ -29,7 +29,7 @@ .\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN .\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. .\" -.TH ZIP_FILE_EXTRA_FIELDS_COUNT 3 "June 23, 2012" NiH +.TH ZIP_FILE_EXTRA_FIELDS_COUNT 3 "October 14, 2012" NiH .SH "NAME" zip_file_extra_fields_count , \- .Nm zip_file_extra_fields_count_by_id count extra fields for file in zip @@ -71,6 +71,11 @@ \fBextra_field_id\fR The other arguments are the same as for zip_file_extra_fields_count. +.PP +Please note that the counts for local header and central directory +extra fields do not need to sum up to the same value as when given +\fBZIP_FL_CENTRAL|ZIP_FL_LOCAL\fR +at once. .SH "RETURN VALUES" Upon successful completion, the requested number of extra fields is returned. Otherwise, \-1 is returned and the error code in
diff --git a/man/zip_file_extra_fields_count.mdoc b/man/zip_file_extra_fields_count.mdoc index fbf14f6..df60594 100644 --- a/man/zip_file_extra_fields_count.mdoc +++ b/man/zip_file_extra_fields_count.mdoc
@@ -29,7 +29,7 @@ .\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN .\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. .\" -.Dd June 23, 2012 +.Dd October 14, 2012 .Dt ZIP_FILE_EXTRA_FIELDS_COUNT 3 .Os .Sh NAME @@ -69,6 +69,11 @@ .Ar extra_field_id The other arguments are the same as for .Fn zip_file_extra_fields_count . +.Pp +Please note that the counts for local header and central directory +extra fields do not need to sum up to the same value as when given +.Dv ZIP_FL_CENTRAL|ZIP_FL_LOCAL +at once. .Sh RETURN VALUES Upon successful completion, the requested number of extra fields is returned. Otherwise, \-1 is returned and the error code in