-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_create_list_cir.c
25 lines (22 loc) · 1.12 KB
/
ft_create_list_cir.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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_create_list_cir.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: lbopp <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2017/02/15 11:13:14 by lbopp #+# #+# */
/* Updated: 2017/02/15 11:13:17 by lbopp ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
t_list_cir *ft_create_list_cir(char *content)
{
t_list_cir *new;
if (!(new = (t_list_cir*)ft_memalloc(sizeof(t_list_cir))))
return (NULL);
new->next = new;
new->prev = new;
new->content = ft_strdup(content);
return (new);
}