cfg_destroy()

Destroy an entire configuration tree.

Synopsis:

#include <asr/cfg.h>
 
void cfg_destroy(cfg_item_t *node)

Arguments:

node

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

Library:

libasr

Description:

The cfg_destroy() function destroys the tree specified by node, which doesn't have to be the root. This function finds the root of the tree, deletes all nodes including the root, and frees the associated memory.

Returns:

Nothing. No errors are logged.