ZIP_ERROR_SET_FROM_SOURCE(3)
π ZIP_ERROR_SET_FROM_SOURCE β ok bestie let's talk error structs
sooo this is a page from the Library Functions Manual (yes that's the manual name, iconic) and it's about a little function that goes by zip_error_set_from_source. Come sit, I got you. π«Ά
β¨ NAME β¨
zip_error_set_from_source β fill in zip_error structure from source. That's the whole vibe. It copies the error situation from one place into another. Slay.
π LIBRARY π
libzip (-lzip) β so like, link against it with -lzip, duh. π
πΈ SYNOPSIS πΈ
#include <zip.h>
void
zip_error_set_from_source(zip_error_t *ze, zip_source_t *src);
void return, two pointers, no funny business. She's a simple girl. π
π¦ DESCRIPTION π¦
Okay so here's the tea β: the zip_error_set_from_source() function sets the zip_error pointed to by ze to the error reported by src β specifically as returned by zip_error_source(3). Like, it's giving "transfer the error energy from src to ze". β¨
β οΈ IMPORTANT bestie, do not skip this: ze must be allocated and initialized withzip_error_init(3)before callingzip_error_set_from_source(). No cap. If you skip the init, that's on you and the vibes will be cursed. π
π SEE ALSO π
Go read those, they're the supporting cast and honestly they ate. π₯
π°οΈ HISTORY π°οΈ
zip_error_set_from_source() was added in libzip 1.10. So if your libzip is ancient, that's why it's ghosting you. π
π AUTHORS π
- Dieter Baron
<dillo@nih.at> - Thomas Klausner
<wiz@gatalith.at>
Legends. Periodt. π
Debian, December 5, 2022 β that's the source/version and date stamp, mwah, love that for us. Byeee, go init your structs first!! π§β¨π
π¦ 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) 2022 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