pack_fclose_chunk(3)

πŸ“¦ version 4.4.3.1, in fedora 43, fedora 44

✨ pack_fclose_chunk(3) ✨

okay so we're in the Allegro manual, bestie, and this page is about closing a sub-chunk. It's giving file-handle cleanup, no cap. πŸ’…


🌸 NAME 🌸

pack_fclose_chunk β€” closes a previously opened sub-chunk. Part of the Allegro game programming library, periodt. πŸ’–

πŸ¦‹ SYNOPSIS πŸ¦‹

you pull in the header and call it like this, fr fr:

#include <allegro.h>

PACKFILE *pack_fclose_chunk(PACKFILE *f);

πŸ’œ DESCRIPTION πŸ’œ

okay so this function closes a sub-chunk of a file. Which sub-chunk? The one you previously obtained by calling pack_fopen_chunk(). That's the whole vibe. It's literally the "ok bye, chunk" button. ✨

πŸŽ€ RETURN VALUE πŸŽ€

It returns a pointer to the parent of the sub-chunk you just closed. Like, you close the little chunk and get the parent back β€” main character energy. πŸ‘‘

Returns NULL if there was some error (eg. you tried to close a PACKFILE which wasn't sub-chunked). So if you try to close something that isn't a sub-chunk, that's a no from the function. 😭

🌈 SEE ALSO 🌈


Allegro version 4.4.3, bestie β€” that's the source/version footer energy, and this page is pack_fclose_chunk(3). No date in the footer, just iconic manual vibes. πŸ«ΆπŸ’–

πŸ“¦ where this page comes from