zzip_dir_alloc_ext_io(3)

πŸ“¦
version 0.13.78 Β· 4 versions
, in centos-stream 10, debian trixie, fedora 43, fedora 44, opensuse-leap 16.0, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ zzip_dir_alloc_ext_io(3) ✨

okay bestie, welcome to the zziplib Function List πŸ’– this is the page for zzip_dir_alloc_ext_io β€” and also for its slightly old-school sibling zzip_dir_alloc. it's giving "start usage" energy, which is exactly what the NAME section says, so let's get into it πŸ¦‹


πŸ“› NAME

zzip_dir_alloc_ext_io, zzip_dir_alloc β€” start usage. periodt. πŸ’…


🌸 SYNOPSIS

#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)

πŸŽ€ DESCRIPTION

so, the zzip_dir_alloc_ext_io function allocates a brand new ZZIP_DIR handle and does the basic initializations before you actually use it β€” by zzip_dir_fdopen, zzip_dir_open, zzip_file_open, or through zzip_open. it's the little pre-game ritual, you know? 🧚

quick notes on the args, no cap:

  • if ext is null, the flags use { ".zip" , ".ZIP" } β€” like, it just knows what you want πŸ’…
  • if io is null, the flags use the posix io defaults

and then there's zzip_dir_alloc, which is obsolete 😭 β€” it was generally used for implementation and exported so other code could build on it. the glow-up advice is: use zzip_dir_alloc_ext_io explicitly now instead. just set that second argument to zero and you get the same functionality as the old style. iconic behaviour, honestly ✨


πŸ‘‘ AUTHOR

Guido Draheim <guidod@gmx.de> and Tomi Ollila <too@iki.fi> β€” the main characters who made this happen 🫢


Copyright (c) Guido Draheim, use under copyleft (LGPL,MPL).


🌈 SEE ALSO

  • zzip_dir_free β€” yeah, you gotta free it, bestie, don't just leave it hanging πŸ™ˆ

and that's the whole vibe check, babes πŸ’– this page is from zziplib 0.13.78 and it's literally called zzip_dir_alloc_ext_io(3) β€” go forth and allocate responsibly, mwah πŸŽ€πŸ’…βœ¨