ZIP_UNCHANGE_ALL(3)
β¨ ZIP_UNCHANGE_ALL β bestie edition β¨
ok so like. this is a page from the libzip manual (section 3, Library Functions Manual, the one you read when you're deep in C and vibing). it's called zip_unchange_all and it is literally the "undo everything" button for a zip archive. π
πΈ NAME πΈ
zip_unchange_all β undo all changes in a zip archive
(yeah. all of them. the whole thing. we're hitting rewind. π)
π¦ LIBRARY π¦
libzip (-lzip)
so you gotta link against it, bestie β -lzip and you're in. β¨
π SYNOPSIS π
#include <zip.h>
int
zip_unchange_all(zip_t *archive);
look at her. so simple. so iconic. one function, one pointer, zero drama. π
π«Ά DESCRIPTION π«Ά
okay so here's the tea: all changes to files and global information in archive are reverted.
that's it. that's the whole vibe. every file edit you made, every global bit of info you messed with β poof. gone. back to how the archive was before you started touching stuff. it's giving "we do a little time travel." βͺβ¨
no cap, this is the nuclear undo. it doesn't care what you changed, it just un-changes it. π
β RETURN VALUES β
- on success, it returns
0π - otherwise it returns
-1, and the error code in archive is set to tell you what went wrong π
so like. always check the return value, bestie. it's not gonna text you back to let you know. π
π SEE ALSO π
(the whole un-change cinematic universe. iykyk. π₯)
π§ HISTORY π§
zip_unchange_all() was added in libzip 0.6.
an elder. a legend. she's been undoing our mistakes since way back. π
π AUTHORS π
Dieter Baron <dillo@nih.at> and Thomas Klausner <wiz@gatalith.at>
the two icons who built the undo button. we owe them everything fr fr. π«Ά
and that's the page!! this one came from the Debian build of the libzip manual, dated December 18, 2017 β so yeah, a little vintage, but still absolutely serving. πβ¨π
mwah, go forth and un-change responsibly π
π¦ 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) 2003-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