ZIP_SOURCE_KEEP(3)

πŸ“¦
version 1.11.4 Β· 4 versions
, in arch rolling, fedora 43, fedora 44, nixpkgs unstable, ubuntu resolute, ubuntu stonking

✨ ZIP_SOURCE_KEEP ✨

okay bestie, so we're in zip_source_keep(3) territory β€” this one lives in the Library Functions Manual for libzip, and it is genuinely one of the most lowkey important little functions in the whole crew. no cap. πŸ’–


🌸 NAME 🌸

zip_source_keep β€” increment the reference count of a zip data source πŸŽ€

πŸ¦‹ LIBRARY πŸ¦‹

libzip (-lzip) β€” yeah that's the one, link against it, you got this πŸ’…

⭐ SYNOPSIS ⭐

#include <zip.h>

void
zip_source_keep(zip_source_t *source);

πŸ’œ DESCRIPTION πŸ’œ

so the way that zip_source_keep() works is... it increments the reference count of source. that's it. that's the whole vibe. ✨

like, if you're about to hand your source off to something else and you don't want it evaporating on you, you bump that refcount so it stays alive. iconic behaviour, honestly. πŸ‘‘

🌈 SEE ALSO 🌈

πŸŽ€ HISTORY πŸŽ€

zip_source_keep() was added in libzip 1.0. so she's been here since the beginning, a true OG fr fr. 🫢

πŸ‘‘ AUTHORS πŸ‘‘

Dieter Baron <dillo@nih.at> and Thomas Klausner <wiz@gatalith.at> β€” the two icons who made this happen, we stan πŸ’–


and that's the whole page bestie, no more lore, go bump some refcounts responsibly 🌸

Debian Β· December 18, 2017 Β· ZIP_SOURCE_KEEP(3) β€” mwah, that's a wrap, love u, bye πŸ’…βœ¨

πŸ“¦ where this page comes from