---
name: "get_config_argv"
section: "3alleg4"
platform: "linux"
package: "allegro4-doc"
version: "2:4.4.3.1-5"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/get_config_argv/3alleg4"
---

# get\_config\_argv(3alleg4)

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

## NAME

get\_config\_argv - Reads a token list from the configuration file. Allegro game programming library.

## SYNOPSIS

**#include \<allegro.h\>**

**char \*\*get\_config\_argv(const char \*section, const char \*name, int \*argc);**

## DESCRIPTION

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.

## RETURN VALUE

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.

## SEE ALSO

**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)
