install_param_int(3)

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

okay so bestie, this is the install_param_int(3) page from the Allegro manual πŸ’– and it's literally about installing a timer routine with a customizable parameter. Allegro game programming library, no cap. πŸŽ€

✨ NAME ✨

install_param_int β€” installs a timer routine with a customizable parameter. Allegro game programming library.

πŸ¦‹ SYNOPSIS πŸ¦‹

#include <allegro.h>

int install_param_int(void (*proc)(void *), void *param, int speed);

πŸ’… DESCRIPTION πŸ’…

It's giving like install_int(), but the callback routine gets passed a copy of the void pointer parameter you specified. So you hand it a pointer, and the callback receives a copy β€” cute, right? 🫢

To disable the handler, use remove_param_int() instead of remove_int(). That's the whole switch-up, bestie, don't forget it. 😭

🌸 SEE ALSO 🌸


mwah πŸ’‹ that's the install_param_int(3) page from the Allegro manual, version 4.4.3. Go slay your timers, bestie. πŸŽ€βœ¨

πŸ“¦ where this page comes from