Sponsor:

Your company here, and a link to your site. Click to find out more.

install_int - Man Page

Installs a user timer handler. Allegro game programming library.

Synopsis

#include <allegro.h>

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

Description

Installs a user timer handler, with the speed given as the number of  milliseconds between ticks. This is the same thing as  install_int_ex(proc, MSEC_TO_TIMER(speed)). If you call this routine  without having first installed the timer module, install_timer() will be  called automatically. 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.

See Also

install_timer(3), remove_int(3), install_int_ex(3), install_param_int(3), exscn3d(3), exswitch(3), extimer(3), exzbuf(3)

Referenced By

END_OF_FUNCTION(3), exscn3d(3), exswitch(3), extimer(3), exzbuf(3), install_int_ex(3), install_param_int(3), install_timer(3), LOCK_FUNCTION(3), LOCK_VARIABLE(3), remove_int(3).

version 4.4.3 Allegro manual