install_timer(3alleg4)

install_timer3alleg4

Installs the allegro timer interrupt handler.

Usage

#include <allegro.h>

int install_timer();

Overview

Installs the Allegro timer interrupt handler. You must do this before installing any user timer routines, and also before displaying a mouse pointer, playing FLI animations or MIDI music, and using any of the GUI routines.

Return value

Returns zero on success, or a negative number on failure (but you may decide not to check the return value as this function is very unlikely to fail).

Releases

7 releases since Debian 7 (Wheezy); the text changed 1 time.

  1. 7–10
  2. 11–13

From allegro4-doc 2:4.4.3.1-5 in Debian 13 (Trixie). Parsed by carta from the page's man source.