set_config_file(3) - Linux man page

Name

set_config_file - Sets the configuration file. Allegro game programming library.

Synopsis

#include <allegro.h>

void set_config_file(const char *filename);

Description

Sets the configuration file to be used by all subsequent config functions. If you don't call this function, Allegro will use the default 'allegro.cfg' file, looking first in the same directory as your program and then in the directory pointed to by the ALLEGRO environment variable and the usual platform-specific paths for configuration files. For example it will look for '/etc/allegro.cfg' under Unix.

All pointers returned by previous calls to get_config_string() and other related functions are invalidated when you call this function! You can call this function before install_allegro() to change the configuration file, but after set_uformat() if you want to use a text encoding format other than the default.

See Also

set_config_data(3), override_config_file(3), push_config_state(3), set_uformat(3), set_config_string(3), get_config_string(3), exconfig(3)

Referenced By

flush_config_file(3), get_config_argv(3), get_config_float(3), get_config_hex(3), get_config_id(3), get_config_int(3), install_allegro(3), list_config_entries(3), list_config_sections(3), load_joystick_data(3), save_joystick_data(3), set_config_float(3), set_config_hex(3), set_config_id(3), set_config_int(3)