Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

allegro_init(3alleg4) [opendarwin man page]

allegro_init(3alleg4)						  Allegro manual					     allegro_init(3alleg4)

NAME
allegro_init - Macro to initialise the Allegro library. SYNOPSIS
#include <allegro.h> int allegro_init(); DESCRIPTION
Macro which initialises the Allegro library. This is the same thing as calling install_allegro(SYSTEM_AUTODETECT, &errno, atexit). SEE ALSO
install_allegro(3alleg4), allegro_exit(3alleg4) Allegro version 4.4.2 allegro_init(3alleg4)

Check Out this Related Man Page

install_allegro(3alleg4)					  Allegro manual					  install_allegro(3alleg4)

NAME
install_allegro - Initialise the Allegro library. SYNOPSIS
#include <allegro.h> int install_allegro(int system_id, int *errno_ptr, int (*atexit_ptr)()); DESCRIPTION
Initialises the Allegro library. You must call either this or allegro_init() before doing anything other than using the Unicode routines. If you want to use a text mode other than UTF-8, you can set it with set_uformat() before you call this. The other functions that can be called before this one will be marked explicitly in the documentation, like set_config_file(). The available system ID codes will vary from one platform to another, but you will almost always want to pass SYSTEM_AUTODETECT. Alterna- tively, SYSTEM_NONE installs a stripped down version of Allegro that won't even try to touch your hardware or do anything platform spe- cific: this can be useful for situations where you only want to manipulate memory bitmaps, such as the text mode datafile tools or the Win- dows GDI interfacing functions. The `errno_ptr' and `atexit_ptr' parameters should point to the errno variable and atexit function from your libc: these are required because when Allegro is linked as a DLL, it doesn't have direct access to your local libc data. `atexit_ptr' may be NULL, in which case it is your responsibility to call allegro_exit() manually. Example: install_allegro(SYSTEM_AUTODETECT, &errno, atexit); RETURN VALUE
This function returns zero on success and non-zero on failure (e.g. no system driver could be used). Note: in previous versions of Allegro this function would abort on error. SEE ALSO
allegro_init(3alleg4), allegro_exit(3alleg4), set_uformat(3alleg4), set_config_file(3alleg4) Allegro version 4.4.2 install_allegro(3alleg4)
Man Page

2 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Shopt -s histappend

What is the point of this? Whenever I close my shell it appends to the history file without adding this. I have never seen it overwrite my history file. # When the shell exits, append to the history file instead of overwriting it shopt -s histappend (3 Replies)
Discussion started by: cokedude
3 Replies

2. OS X (Apple)

Undeletable file

Greetings, I'm trying to delete a file with a weird name from within Terminal on a Mac. It's a very old file (1992) with null characters in the name: “␀␀Word FinderÂŽ Plus™”. Here are some examples of what I've tried: 12FX009:5 dpontius$ ls ␀␀Word FinderÂŽ Plus™ 12FX009:5 dpontius$ rm... (29 Replies)
Discussion started by: dpontius
29 Replies