cfg_get_parent()

Get the parent of the specified item.

Synopsis:

#include <asr/cfg.h>
 
cfg_item_t* cfg_get_parent(const cfg_item_t *current)

Arguments:

current

A pointer to the configuration item.

Library:

libasr

Description:

The cfg_get_parent() function returns the parent of the specified configuration item.

Returns:

A pointer to the parent of current. NULL if current is NULL or has no parent.