---
name: "install_int"
section: "3alleg4"
platform: "linux"
package: "allegro4-doc"
version: "2:4.4.3.1-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/install_int/3alleg4"
---

# install\_int(3alleg4)

Installs a user timer handler. Allegro game programming library.

## NAME

install\_int - 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**(3alleg4), **remove\_int**(3alleg4), **install\_int\_ex**(3alleg4), **install\_param\_int**(3alleg4), **exscn3d**(3alleg4), **exswitch**(3alleg4), **extimer**(3alleg4), **exzbuf**(3alleg4)
