Replace a node in a configuration tree.
#include <asr/cfg.h>
cfg_item_t* cfg_replace_item(cfg_item_t *base, const char *ckey, const char *new_value)
A pointer to the root of the configuration tree to search.
The key of the node to search for.
The value of the replacement node.
The cfg_replace_item() function deletes the first node under base with the key ckey. It then inserts a new node with the key ckey and value new_value as a child of base, in front of its sibling nodes.
A pointer to the new configuration item.