ZIP_ERROR_CODE_SYSTEM(3)

πŸ“¦
version 1.11.4 Β· 3 versions
, in arch rolling, debian trixie, fedora 43, fedora 44, nixpkgs unstable, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ ZIP_ERROR_CODE_SYSTEM ✨

okay bestie, so this is a page from the Library Functions Manual β€” the ZIP_ERROR_CODE_SYSTEM(3) one, to be exact πŸŽ€ β€” and it's literally the tiniest lil libzip page ever, so we're gonna speedrun it together πŸ’…


πŸ¦‹ NAME πŸ¦‹

zip_error_code_system β€” get the operating system error part of a zip_error

like... it's the lil piece of the error that came from the OS itself, not from zip. two different flavours of oopsie, bestie 😭


πŸ’– LIBRARY πŸ’–

libzip (-lzip)

that's the one. link it, love it, <pink>slay</pink>. 🫢


🌸 SYNOPSIS 🌸

#include <zip.h>

int
zip_error_code_system(const zip_error_t *ze);

look at her. one function, one argument, returns an int. main character energy fr fr πŸ‘‘


✨ DESCRIPTION ✨

so the zip_error_code_system() function returns the system specific part of the error from the zip_error error ze. that's it. that's the whole job. she's giving "I do one thing and I do it well" πŸ’…

and if you're sitting there like "okay but WHICH system reported this error tho??" β€” bestie, that's not this function's business. for finding out what system reported the error, use zip_error_system_type(3). different function, different vibe, go ask her πŸ™ˆ


πŸŽ€ SEE ALSO πŸŽ€

the whole friend group. iykyk 🌈


🧚 HISTORY 🧚

zip_error_code_system() was added in libzip 1.0. so she's been here since the beginning, a true OG ⭐


πŸ’œ AUTHORS πŸ’œ

Dieter Baron <dillo@nih.at> and Thomas Klausner <wiz@gatalith.at> β€” the two icons who wrote this, no cap 🫢


quick vibe check: this function tells you the system part of the error. it does NOT tell you which system β€” that's zip_error_system_type(3)'s whole thing. don't mix them up, bestie 😭

and that's the page!! this Debian build came out on December 18, 2017, and yes we're still obsessed with it to this day πŸ’– bye pookie, go read zip_error_system_type(3) next πŸŒΈβœ¨πŸŽ€