zzip_dir_free(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_free β€” bestie edition πŸ’–

okay so this is a page from the zziplib Function List, and we're talking about zzip_dir_free(3) and its little sibling zzip_dir_close. buckle up πŸŽ€


✨ NAME ✨

zzip_dir_free, zzip_dir_close β€” the cleanup girlies πŸ’… (the original page leaves the description blank after the dash, so like… that's just the vibe, no cap)


🌸 SYNOPSIS 🌸

#include <zzip/lib.h>

int
zzip_dir_free(ZZIP_DIR* dir)

int
zzip_dir_close(ZZIP_DIR* dir)

πŸ¦‹ DESCRIPTION πŸ¦‹

so basically, the zzip_dir_free function will free the zzip_dir handle β€” but only unless there are still zzip_files attached that might be using its cache buffer. like, she's not gonna ghost her friends mid-hangout, bestie 😭

this is the inverse of zzip_dir_alloc, and honestly both of them are just helper functions that get used implicitly in other zzip calls. for example: zzip_dir_close = zzip_close. periodt ✨

it returns zero on success, and it returns the refcount when files are still attached.

it will also free(2) the ZZIP_DIR-handle that you gave it. the counterpart for zzip_dir_open β€” see also zzip_dir_free. iykyk πŸ‘‘


πŸ‘‘ AUTHOR πŸ‘‘

Guido Draheim <guidod@gmx.de> and Tomi Ollila <too@iki.fi> β€” icons, fr fr 🫢


Copyright (c) Guido Draheim, use under copyleft (LGPL,MPL). slay, legally πŸ’–


🌈 SEE ALSO 🌈

  • zzip_dir_alloc_ext_io

okay bestie, reminder: this whole thing is the zzip_dir_free(3) page from the zziplib Function List, zziplib 0.13.78 edition. that's the source, that's the version, and that's the whole page β€” no cap, you ate it, go free those handles responsibly πŸŽ€βœ¨πŸ’