include/s_tree.h
tree_nd* clone_tree(tree_nd *root)
{
    if (!root)
        return NULL;

    return new_tree_node(root->tok, clone_tree(root->l), clone_tree(root->r));
}
//  Function that clones a tree formed by the node structure
Function that clones a tree formed by the node structure
Function that clones a tree formed by the node structure
tree_nd* clone_tree(tree_nd *root)
{
    if (!root)
        return NULL;
    return new_tree_node(root->tok, clone_tree(root->l), clone_tree(root->r));
}
tree_nd * clone_tree ( tree_nd * root ) { if ( ! root ) return NULL ; return new_tree_node ( root -> tok , clone_tree ( root -> l ) , clone_tree ( root -> r ) ) ; }
Function that clones a tree formed by the node structure
Function that clones a tree formed by the node structure