cfg_find_value()

Return the string value of a node in a configuration tree.

Synopsis:

#include <asr/cfg.h>
 
char* cfg_find_value(const cfg_item_t *node, const char *key)

Arguments:

node

A pointer to the node to start the search from.

key

A '/' separated list of node names to search for.

Library:

libasr

Description:

The cfg_find_value() function invokes the cfg_find_item() function to search a configuration tree for a node that matches key, starting at node. If a match is found, its string value is returned.

Returns:

The string value of the matching configuration node; NULL if the item wasn't found.