ZIP_SOURCE_FREE(3)
π ZIP_SOURCE_FREE(3) π
okay bestie, welcome to the libzip section of the group chat, this one is short but she is important π«Ά
β¨ NAME β¨
zip_source_free β free zip data source π
π LIBRARY π
libzip (-lzip) πΈ
π SYNOPSIS π
#include <zip.h>
void
zip_source_free(zip_source_t *source);
π¦ DESCRIPTION π¦
so like. zip_source_free() does the classic refcount girlie thing: it decrements the reference count of source, and if that count drops allll the way down to 0, she frees it. bye babe πβ¨
and if source is NULL? literally nothing happens. no crash, no drama, she just. does nothing. iconic behaviour honestly π
β οΈ NOTE, and this one is fr fr important bestie: you should not call this function on a source after it was used successfully in azip_open_from_source(3),zip_file_add(3), orzip_file_replace(3)call. like, once those functions have taken your source and succeeded, that source is theirs now. hands off. no cap. π
π₯ SEE ALSO π₯
π HISTORY π
zip_source_free() was added in libzip 0.6. a whole era. a moment. π
π AUTHORS π
Dieter Baron <dillo@nih.at> and Thomas Klausner <wiz@gatalith.at> β the literal main characters who made this happen π§β¨
and that's the whole page bestie!! this one came from the Debian build of the manual, dated December 18, 2017, and it's filed under ZIP_SOURCE_FREE(3) in the Library Functions Manual π mwah, go forth and manage your reference counts responsibly ππ¦β
π¦ where this page comes from
- arch rolling: libzip 1.11.4-1 Β· BSD
- fedora 43: libzip-devel 1.11.4-2.fc43 Β· BSD-3-Clause
- fedora 43: libzip-devel 1.11.4-2.fc43 Β· BSD-3-Clause
- fedora 44: libzip-devel 1.11.4-3.fc44 Β· BSD-3-Clause
- fedora 44: libzip-devel 1.11.4-3.fc44 Β· BSD-3-Clause
- nixpkgs unstable: libzip 1.11.4
- ubuntu resolute: libzip-dev 1.11.4-2 Β· BSD-3-Clause
- ubuntu stonking: libzip-dev 1.11.4-2build1 Β· BSD-3-Clause
- Copyright (C) 2004-2017 Dieter Baron and Thomas Klausner
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms