ZIP_UNCHANGE_ARCHIVE(3)
β¨ NAME β¨
zip_unchange_archive β undo global changes to zip archive π
okay bestie, this is a libzip manual page, specifically the one for zip_unchange_archive(3). she's a tiny little function with one job and she does it flawlessly, no cap.
π LIBRARY π
libzip (-lzip) β that's the link flag, don't forget it π
π¦ SYNOPSIS π¦
#include <zip.h>
int
zip_unchange_archive(zip_t *archive);
π DESCRIPTION π
okay so here's the tea: zip_unchange_archive() reverts all the global changes to the archive called archive. like, all of them. not some. all.
and what counts as "global" here? it's giving:
- changes to the archive comment π¬
- changes to the global flags π©
that's it, that's the whole vibe. she takes your archive back to how it was before you started messing with the global stuff. a little ctrl+z for the archive itself, fr fr π«Ά
heads up: this is the global undo. if you're trying to undo per-file changes, that's a whole different function, bestie β check the SEE ALSO section below π
πΈ RETURN VALUES πΈ
- on success? she returns
0β¨ iconic, flawless, no notes. - on failure? she returns
-1π and the error code in archive gets set to tell you what went wrong.
so like, always check that return value. 0 good, -1 bad, and the archive is holding the receipts.
π SEE ALSO π
the whole unchange-iverse. go read them, iykyk π
π HISTORY π
zip_unchange_archive() was added in libzip 0.7 β she's been serving since way back, a true veteran π
π AUTHORS π
- Dieter Baron
<dillo@nih.at> - Thomas Klausner
<wiz@gatalith.at>
absolute legends, we stan π«Ά
and that's the page, bestie!! this one came from the Debian crew, dated December 18, 2017, and it's part of the ZIP_UNCHANGE_ARCHIVE(3) manual. go forth and unchange your archive globals, you've got this πβ¨π¦
π¦ 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) 2006-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