zzip_dir_alloc_ext_io, zzip_dir_alloc − start usage.
#include <zzip/lib.h>
ZZIP_DIR *
zzip_dir_alloc_ext_io(zzip_strings_t * ext, const
zzip_plugin_io_t io)
ZZIP_DIR *
zzip_dir_alloc(zzip_strings_t * fileext)
The zzip_dir_alloc_ext_io function allocates a new ZZIP_DIR handle and do basic initializations before usage by zzip_dir_fdopen zzip_dir_open zzip_file_open or through zzip_open (ext==null flags uses { ".zip" , ".ZIP" } ) (io ==null flags use of posix io defaults)
The zzip_dir_alloc function is obsolete - it was generally used for implementation and exported to let other code build on it. It is now advised to use zzip_dir_alloc_ext_io now on explicitly, just set that second argument to zero to achieve the same functionality as the old style.
Guido Draheim <[email protected]> Tomi Ollila <[email protected]>
Copyright (c) Guido Draheim, use under copyleft (LGPL,MPL)
zzip_dir_free