cfg_clone()

Copy one configuration tree into another.

Synopsis:

#include <asr/cfg.h>
 
cfg_item_t* cfg_clone(cfg_item_t *parent, cfg_item_t *root)

Arguments:

parent

A pointer to the configuration tree to add the clone to.

root

A pointer to the configuration tree to copy.

Library:

libasr

Description:

The cfg_clone() function copies the configuration tree specified by root into the configuration tree and at the location specified by parent. The structure of the root tree is maintained in the cloning operation.

Returns:

A pointer to the parent configuration tree on success, or NULL on error.