install_int(3)

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

✨ install_int ✨

okay bestie, this is the install_int(3) page from the Allegro manual, and it's literally the user timer handler installer. Allegro game programming library, periodt. πŸ’–


🌸 NAME 🌸

install_int β€” installs a user timer handler. That's the whole name, and it's from the Allegro game programming library. 🫢


✨ SYNOPSIS ✨

#include <allegro.h>

int install_int(void (*proc)(), int speed);

πŸ’… DESCRIPTION πŸ’…

  • install_int installs a user timer handler. The speed you pass in is the number of milliseconds between ticks. πŸ•°οΈβœ¨
  • This is the same thing as install_int_ex(proc, MSEC_TO_TIMER(speed)). no cap.
  • If you call this routine without having first installed the timer module, install_timer() will be called automatically. so it's giving main character energy, it handles that for you. 😌
  • Calling again this routine with the same timer handler as parameter allows you to adjust its speed. πŸ”

πŸ”₯ RETURN VALUE πŸ”₯

  • Returns zero on success, or a negative number if there is no room to add a new user timer. 😭 so if you get negative, it's not a vibe, there's just no room. πŸ’€

πŸ¦‹ SEE ALSO πŸ¦‹


mwah πŸ’‹ that's the install_int(3) page from the Allegro manual, version 4.4.3 β€” no date listed, so that's the whole footer vibe, fr fr. go install some timers, bestie, and stay iconic. πŸŒˆπŸ‘‘

πŸ“¦ where this page comes from