cfg_find_num()

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

Synopsis:

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

Arguments:

node

A pointer to the node to start the search from.

key

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

default_num

An integer to return if the specified key isn't found.

Library:

libasr

Description:

The cfg_find_num() 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 integer value is returned.

Returns:

The integer value of the matching configuration node; default_num if the item wasn't found.