Comments (2)
To answer your questions:
- Yes, that's no problem.
- No, passing
NULL
would crash. If you passNULL
aserror
tozip_source_zip_file_create()
, the error information is lost. - There are more
zip_source_foo()
/zip_source_foo_create()
function pairs that all takearchive
orerror
as arguments, and keeping them consistent seems like a good idea. We'll add a paragraph to all their man pages to document these arguments.
If you pass NULL
as password, the default password for the archive is used. If you pass the empty string, that is used as password.
from libzip.
If you pass
NULL
as password, the default password for the archive is used. If you pass the empty string, that is used as password.
This might be worth documenting very clearly. In particular, this is a place where a NULL
string and an empty string have different meanings and effects. This can be quite tricky.
This is also subtly different from the way zip_set_default_password
treats its password
parameter. See zip_set_default_password
's documentation:
If password is
NULL
or the empty string, the default password is unset.
In that case, a NULL
or an empty string have the same meaning and effect.
from libzip.
Related Issues (20)
- zip_close failed cause filesystem handle to leak. HOT 3
- How to save or socket an archive from memory? HOT 3
- ld: library 'zip' not found HOT 2
- libzip::zip doesn't exist HOT 2
- Make CMake options consistent HOT 5
- No rule to make target 'zlib.h', needed by 'lib/libzip.dll' HOT 7
- ZIP_CM_SHRINK and ZIP_CM_IMPLODE give unsupported compression method error HOT 1
- Error when use with CPM (cmake package manager) HOT 1
- ZIP_ER_INCONS error (Zip archive inconsistent) on an apparently valid ZIP archive HOT 2
- error while loading shared libraries from /usr/local/lib, dir not in path under Linux Mint HOT 1
- 4 GB limit? HOT 1
- Functionality for creation of split-volume zip files based on individual byte ranges of complete file HOT 3
- Creating ZIP archives is not properly handling wchar_t on Windows 11/x64.
- Crash with illegal instruction under Windows 11 x64 ARM virtualization HOT 2
- Fix documentation of `zip_source_win32handle` HOT 1
- writing zip file fails HOT 2
- Using the libzip library to package files suddenly increases CPU load HOT 5
- New security rules HOT 3
- Compilation error w/ MSYS2 GCC: Incompatible pointer types HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libzip.