zzip_error(3)

πŸ“¦
version 0.13.78 Β· 4 versions
, in centos-stream 10, debian trixie, fedora 43, fedora 44, opensuse-leap 16.0, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ zzip_error(3) ✨

okay bestie, welcome to the zziplib Function List πŸ’– this one's a lil cutie from the zzip_error family, and it's genuinely so simple you're gonna be obsessed.


πŸŽ€ NAME πŸŽ€

zzip_error, zzip_seterror β€” get errror status.

(yes it says "errror" and yes we're keeping it, that's the canon spelling fr fr πŸ’…)


🌸 SYNOPSIS 🌸

#include <zzip/lib.h>

int
zzip_error(ZZIP_DIR* dir)

void
zzip_seterror(ZZIP_DIR* dir, int errcode)

πŸ¦‹ DESCRIPTION πŸ¦‹

zzip_error β€” the reader πŸ“–

zzip_error is literally the chillest function alive. All it does is hand you back dir->errcode from the ZZIP_DIR handle. That's it. That's the whole vibe. no cap.

so like, if you're holding a ZZIP_DIR and you wanna know what went wrong (or didn't), you just ask it. lowkey iconic behaviour.

bestie if you want the full picture of how that error code got there, go peek at: zzip_dir_open, zzip_dir_open, zzip_readdir, zzip_dir_read 🫢

zzip_seterror β€” the writer ✍️

zzip_seterror is the mirror twin and it's even simpler. it literally just does:

dir->errcode = errcode

you hand it a ZZIP_DIR* and an int errcode, it slaps that value into dir->errcode, done. main character energy, zero drama, zero return value (void, periodt). πŸ”₯


πŸ‘‘ AUTHOR πŸ‘‘

Guido Draheim <guidod@gmx.de>


Copyright (c) Guido Draheim, use under copyleft (LGPL,MPL)


and that's the whole page, bestie 🌈 this absolute gem comes to you from zziplib 0.13.78 (the zzip_error(3) manual page) β€” stan a tiny function that does exactly one thing and does it flawlessly βœ¨πŸ’–πŸŽ€