PAPERINIT(3)

πŸŽ€ PAPERINIT β€” the paper library's little hello-and-goodbye moment πŸŽ€

ok so bestie, this is paperinit(3) and paperdone(3), two lil functions from the Library Functions Manual that bookend your whole relationship with the paper library. one opens the door, one closes it. that's it. that's the vibe. πŸ’–


✨ NAME ✨

paperinit, paperdone β€” begin and end using the paper library 🫢


✨ SYNOPSYS ✨

(and yes the original really spells it like that, we don't fix what's iconic πŸ’…)

#include <paper.h>

void paperinit(void)
void paperdone(void)

✨ DESCRIPTION ✨

🌸 paperinit()

paperinit() initializes the paper library. she's setting everything up for you β€” allocating whatever resources are necessary for the library to be usable. 🌈

⚠️ okay listen, this is not optional. this function must be called before any other function of the paper library is used. like, before. no skipping. it's the pregame, you cannot show up to the function party without it. 😭

πŸ¦‹ paperdone()

paperdone() frees any resources that were allocated for the paper library. cleanup era. she's taking out the trash, closing the tabs, returning the shopping cart. πŸŽ€

🚨 and after you call this one? no function of the library should be called after a call to this function. none. zero. it's giving closed for business. the party is over, the lights are off, do NOT keep calling. πŸ’€

✨ SEE ALSO ✨


and that's the whole page, bestie β€” so iconic, so brief. this lil masterpiece is from the Library Functions Manual, dated 24 September 1996, which is honestly giving vintage queen energy and we respect it. periodt. πŸ‘‘βœ¨