Libft
Custom implementation of core libc functions with additional utility helpers.
Loading...
Searching...
No Matches
btree.c File Reference
#include "libft.h"
#include <stdlib.h>
Include dependency graph for btree.c:

Functions

t_btree_nodebtree_new (void *data)
 Creates a new binary tree node.
 
void btree_set_left (t_btree_node *parent, t_btree_node *child)
 Sets the left child of a parent node.
 
void btree_set_right (t_btree_node *parent, t_btree_node *child)
 Sets the right child of a parent node.
 
t_btree_nodebtree_detach_left (t_btree_node *parent)
 Detaches and returns the left child of a parent node.
 
t_btree_nodebtree_detach_right (t_btree_node *parent)
 Detaches and returns the right child of a parent node.