zzip_fclose(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_fclose β€” from the zziplib Function List, section 3 πŸ’–

okay bestie, gather round, because this one is short but it is IMPORTANT 🫢


✨ NAME ✨

zzip_fclose, zzip_close β€” end usage. that's it. that's the whole vibe. you're done, you're closing the thing, you're logging off πŸ‘‹


🌸 SYNOPSIS 🌸

#include <zzip/lib.h>

int
zzip_fclose(ZZIP_FILE* fp)

int
zzip_close(ZZIP_FILE* fp)

two functions, same energy, both handing you back an int. no cap πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

so like, the zzip_fclose function closes the given ZZIP_FILE handle. that's the main character move here πŸ’–

and here's the tea, the little plot twist that makes it make sense: if the ZZIP_FILE wraps a normal stat'fd, then it is just that int'fd that is being closed, and the otherwise empty ZZIP_FILE gets freed. so the wrapper's whole job was babysitting that fd and now it's empty and it's free to go, iconic honestly πŸŽ€


πŸ‘‘ AUTHOR πŸ‘‘

Guido Draheim <guidod@gmx.de> Tomi Ollila <Tomi.Ollila@iki.fi>

two absolute legends, we stan 🌈


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

like, share, remix, but keep it copyleft, bestie ✨


lowkey reminder: this is the end usage function. once you've called it, that handle is gone-gone. don't come for it again πŸ™ˆ

and that's the whole page, fr fr β€” brought to you by zziplib 0.13.78, zzip_fclose(3). go close your handles and hydrate, ily πŸ“πŸ§šπŸ’–