remove_int(3)

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

πŸ’– remove_int(3) πŸ’–

okay so bestie, welcome to the Allegro manual, and today's main character is remove_int β€” the little function that says "okay bye πŸ‘‹" to a timer.


🌸 NAME 🌸

remove_int β€” removes a timer. it's part of the Allegro game programming library, and yes she's iconic for it.


✨ SYNOPSIS ✨

#include <allegro.h>

void remove_int(void (*proc)());

πŸŽ€ DESCRIPTION πŸŽ€

so basically? remove_int removes a function from the list of user interrupt routines. that's it, that's the whole job, and she does it flawlessly πŸ’…

you hand her proc β€” the function pointer you previously installed β€” and she takes it off the interrupt list. gone. not invited to the party anymore. periodt.

ngl, the important bit: at program termination, allegro_exit() does this automatically. so you don't have to call this yourself if you're just letting the program end β€” Allegro's already got you, bestie 🫢

πŸ¦‹ SEE ALSO πŸ¦‹


and that's the whole page, no cap ✨ this was Allegro, version 4.4.3, and remove_int(3) ate and left no crumbs πŸ’–πŸŽ€πŸ¦‹

🌈 bye bestie, go remove some timers 🌈

πŸ“¦ where this page comes from