ZIP_DISCARD(3)
β¨ ZIP_DISCARD β¨
okay so bestie, welcome to the zip_discard page π it lives in the libzip manual, and it's honestly the "nvm, forget I said anything" of the archive world. let's get into it π«Ά
πΈ NAME πΈ
zip_discard β close zip archive and discard changes π
π LIBRARY π
libzip (-lzip) β that's the link flag you're gonna want, no cap β¨
π SYNOPSIS π
#include <zip.h>
void
zip_discard(zip_t *archive);
π DESCRIPTION π
so like, the zip_discard() function closes archive and frees the memory allocated for it π₯
and here's the main character moment: any changes to the archive are not written to disk and get discarded π like, gone. ghosted. never happened. periodt.
ngl this is the "close without saving" button of the libzip universe β if you had edits you actually cared about, they are NOT surviving this call π
π SEE ALSO π
π¦ HISTORY π¦
zip_discard() was added in libzip 0.11 β an icon, a legend, and it's been here since 0.11 π§
π AUTHORS π
- Dieter Baron
<dillo@nih.at> - Thomas Klausner
<wiz@gatalith.at>
and that's the whole vibe π this little number came to you from the Debian edition, dated December 18, 2017 β shoutout to that date for real, slay π byeeee π
π¦ where this page comes from
- arch rolling: libzip 1.11.4-1 Β· BSD
- debian trixie: libzip-dev 1.11.3-2 Β· BSD-3-Clause
- 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 questing: libzip-dev 1.11.3-2
- ubuntu resolute: libzip-dev 1.11.4-2 Β· BSD-3-Clause
- ubuntu stonking: libzip-dev 1.11.4-2build1 Β· BSD-3-Clause
- Copyright (C) 2012-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