1allegro_exit(3)                 Allegro manual                 allegro_exit(3)
2
3
4

NAME

6       allegro_exit - Closes down the Allegro system.
7

SYNOPSIS

9       #include <allegro.h>
10
11
12       void allegro_exit();
13

DESCRIPTION

15       Closes  down  the Allegro system. This includes returning the system to
16       text mode and removing whatever mouse,  keyboard,  and  timer  routines
17       have  been  installed.  You  don't  normally  need  to bother making an
18       explicit call to this function, because allegro_init() installs  it  as
19       an  atexit()  routine so it will be called automatically when your pro‐
20       gram exits.
21
22       Note  that  after  you  call  this  function,  other   functions   like
23       destroy_bitmap()  will  most  likely  crash.  This is a problem for C++
24       global destructors, which usually get called after atexit(),  so  don't
25       put Allegro calls in them. You can write the destructor code in another
26       method which you can manually call before your program exits,  avoiding
27       this problem.
28
29

SEE ALSO

31       install_allegro(3),    allegro_init(3),   destroy_bitmap(3),   ex3d(3),
32       exscn3d(3), exswitch(3), exxfade(3), exzbuf(3)
33
34
35
36Allegro                          version 4.4.3                 allegro_exit(3)
Impressum