cfg_resolve_value()

Get the resolved values of the specified configuration item.

Synopsis:

#include <asr/cfg.h>
 
char* cfg_resolve_value(const cfg_item_t *item)

Arguments:

item

A pointer to the configuration item.

Library:

libasr

Description:

The cfg_resolve_value() function expands the variable references in a configuration item and returns the resolved value. For example, the item "prompt-dir = $(base-dir)/prompt" becomes "prompt-dir = /opt/asr/prompt".

Returns:

An allocated string with all the variable references expanded.