cfg_clear_item()

Delete the configuration tree under a node.

Synopsis:

#include <asr/cfg.h>
 
void cfg_clear_item(cfg_item_t *current)

Arguments:

current

A pointer to the configuration node. This pointer must not be NULL.

Library:

libasr

Description:

The cfg_clear_item() function destroys the tree rooted at current. It deletes all child nodes under current and frees the associated memory. The current node is not destroyed.

Returns:

Nothing. No errors are logged.