cfg_find_higher_item()

Find a node higher in a configuration tree.

Synopsis:

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

Arguments:

current

A pointer to the node to begin the search in.

key

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

Library:

libasr

Description:

The cfg_find_higher_item() function performs a restricted search for a node with key, starting with current and its sibling nodes, and then moving up to the parent of current, the siblings of the parent of current, and so on.

Returns:

A pointer to the matching configuration node; NULL if the item wasn't found.