include/s_tree.h
tree_nd *new_tree_node(const char* tok, tree_nd *l, tree_nd *r)
{   
    tree_nd *new_nd = (tree_nd *) malloc(sizeof(tree_nd));

    if(!new_nd) return NULL;

    new_nd->tok = custom_strdup(tok);
    new_nd->l   = l;
    new_nd->r   = r;

    return new_nd;
}
//Function that generates and allocates a new node
Function that generates and allocates a new node
Function that generates and allocates a new node
tree_nd *new_tree_node(const char* tok, tree_nd *l, tree_nd *r)
{   
    tree_nd *new_nd = (tree_nd *) malloc(sizeof(tree_nd));
    if(!new_nd) return NULL;
    new_nd->tok = custom_strdup(tok);
    new_nd->l   = l;
    new_nd->r   = r;
    return new_nd;
}
tree_nd * new_tree_node ( const char * tok , tree_nd * l , tree_nd * r ) { tree_nd * new_nd = ( tree_nd * ) malloc ( sizeof ( tree_nd ) ) ; if ( ! new_nd ) return NULL ; new_nd -> tok = custom_strdup ( tok ) ; new_nd -> l = l ; new_nd -> r = r ; return new_nd ; }
Function that generates and allocates a new node
Function that generates and allocates a new node