-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbtree_create_node.c
28 lines (25 loc) · 1.08 KB
/
btree_create_node.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* btree_create_node.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: ggane <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2016/02/02 18:16:00 by ggane #+# #+# */
/* Updated: 2016/06/04 14:09:45 by ggane ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
t_btree *btree_create_node(void *item)
{
t_btree *new;
new = NULL;
new = malloc(sizeof(t_btree));
if (new)
{
new->left = NULL;
new->right = NULL;
new->item = item;
}
return (new);
}