install_timer(3alleg)

install_timer3alleg

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

4 releases since Debian 3.1 (Sarge); the text changed 2 times.

  1. 3.1
  2. 4.0
  3. 5.0–6.0

From liballegro-doc 2:4.2.2-2.2 in Debian 6.0 (Squeeze). Parsed by carta from the page's man source.