Enhance documentation of zip_source_zip_file
and zip_source_zip
#433
Labels
documentation
Documentation is incomplete, inaccurate, or unclear.
The functions
zip_source_zip_file
andzip_source_zip
take two parameters each of typezip_t*
namedarchive
andsrcarchive
.The role of the first
archive
parameter is not immediately obvious. Reading the documentation carefully, it seems that thearchive
parameter is used when setting the error status of azip_t
object in case of error. This raises a couple of questions:archive
andsrcarchive
pointers to point to the samezip_t
object?NULL
pointer to thearchive
parameter? If yes, what happens in case of error? Is the error status then stored in*srcarchive
or lost entirely?archive
parameters to something more indicative of its role, like maybeerror
, since it is playing a similar role as theerror
parameter inzip_source_zip_file_create
andzip_source_zip_create
?The role of the
password
parameter passed tozip_source_zip_file
andzip_source_zip_file_create
is not described in the documentation. Is it possible to pass aNULL
pointer aspassword
? If yes, does it have the same effect as passing an empty string?The text was updated successfully, but these errors were encountered: