---
name: "install_int"
section: "3alleg"
platform: "linux"
package: "liballegro-doc"
version: "2:4.2.2-2.2"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/install_int"
---

# install\_int(3alleg)

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**(3alleg)](/install_timer/3alleg.md), [**remove\_int**(3alleg)](/remove_int/3alleg.md), [**install\_int\_ex**(3alleg)](/install_int_ex/3alleg.md), [**install\_param\_int**(3alleg)](/install_param_int/3alleg.md), [**exscn3d**(3alleg)](/exscn3d/3alleg.md), [**exswitch**(3alleg)](/exswitch/3alleg.md), [**extimer**(3alleg)](/extimer/3alleg.md), [**exzbuf**(3alleg)](/exzbuf/3alleg.md)
