DOKK / manpages / debian 11 / allegro4-doc / get_config_argv.3alleg4.en
get_config_argv(3alleg4) Allegro manual get_config_argv(3alleg4)

get_config_argv - Reads a token list from the configuration file. Allegro game programming library.

#include <allegro.h>

char **get_config_argv(const char *section, const char *name, int *argc);

Reads a token list (words separated by spaces) from the current config file. The token list is stored in a temporary buffer that will be clobbered by the next call to get_config_argv(), so the data should not be expected to persist.

Returns an argv style argument list and sets `argc' to the number of retrieved tokens. If the variable is not present, returns NULL and sets argc to zero.

set_config_file(3alleg4), get_config_string(3alleg4), get_config_float(3alleg4), get_config_hex(3alleg4), get_config_int(3alleg4), get_config_id(3alleg4), exconfig(3alleg4)

version 4.4.3 Allegro