ZIP_ERROR_INIT(3)
π ZIP_ERROR_INIT(3) π
okay bestie, gather round, because today we're talking about libzip's Library Functions Manual and honestly? it's giving foundational. β¨
πΈ NAME πΈ
zip_error_init, zip_error_init_with_code β initialize zip_error structure
like, the whole glow-up of getting your zip_error struct ready to be something. π
π LIBRARY π
libzip (-lzip)
the girlies link it with -lzip, no cap. π«Ά
β¨ SYNOPSIS β¨
#include <zip.h>
void
zip_error_init(zip_error_t *error);
void
zip_error_init_with_code(zip_error_t *error, int ze);
π¦ DESCRIPTION π¦
so, the zip_error_init() function initializes the zip_error pointed to by error. that's it, that's the job, she's a simple queen. π
but listen β*errormust be allocated before callingzip_error_init(). not optional. allocate first, init second. iykyk. π
the zip_error_init_with_code() function does the same thing, but she does more, because she's the main character. on top of initializing, she also sets the zip error code to ze and sets the system error code to the current errno(3) value, if appropriate. slay. π
π SEE ALSO π
(because every init needs her fini counterpart, that's just balance, bestie π§)
π HISTORY π
zip_error_init() and zip_error_init_with_code() were added in libzip 1.0. iconic behavior, truly. β
π AUTHORS π
Dieter Baron <dillo@nih.at> and Thomas Klausner <wiz@gatalith.at> β absolute legends, we stan. π
and that's the whole page, fr fr! this cutie came to you from the Debian crew, dated December 18, 2017, filed under ZIP_ERROR_INIT(3). go forth and initialize responsibly, mwah πβ¨π
π¦ 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-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