ZIP_ERROR_SET(3)
β¨ ZIP_ERROR_SET(3) β¨
okay bestie, we're in the Library Functions Manual section, and this one is short but SO important, like the little function that could π
πΈ NAME πΈ
zip_error_set β fill in zip_error structure
no cap, that's literally all it does and it does it flawlessly π
π LIBRARY π
libzip (-lzip)
link against her or she will NOT work, periodt π
π¦ SYNOPSIS π¦
#include <zip.h>
void
zip_error_set(zip_error_t *ze, int le, int se);
π DESCRIPTION π
okay so. the zip_error_set() function sets the zip_error pointed to by ze to the libzip error code le and the system error code se. that's it. that's the whole vibe. two little codes, one struct, slay β¨
π¨ IMPORTANT BESTIE:zemust be allocated and initialized withzip_error_init(3)before you callzip_error_set(). do not skip this step. do not pass in some random uninitialized struct and hope for the best, because it's giving undefined behaviour energy and we are NOT about that life π
π SEE ALSO π
go read those too, iykyk π
π HISTORY π
zip_error_set() was added in libzip 1.0. iconic behaviour since day one π
π AUTHORS π
Dieter Baron <dillo@nih.at> and Thomas Klausner <wiz@gatalith.at>
and that's the whole page, bestie!! π«Ά this little cutie is from Debian, dated December 5, 2022 β mwah, go forth and set those error codes correctly πβ¨π
π¦ 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) 2014-2021 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