-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_ldcdnew.c
executable file
·28 lines (25 loc) · 1.15 KB
/
ft_ldcdnew.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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_ldcdnew.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: tseguier <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2013/12/03 04:09:23 by tseguier #+# #+# */
/* Updated: 2014/03/27 18:38:36 by jcoignet ### ########.fr */
/* */
/* ************************************************************************** */
#include <stdlib.h>
#include <string.h>
#include "libft.h"
t_ldcd ft_ldcdnew(void)
{
t_ldcd newldcd;
newldcd = (t_ldcd)malloc(sizeof(struct s_ldcd));
if (!newldcd)
return (NULL);
newldcd->size = 0;
newldcd->head = NULL;
newldcd->tail = NULL;
return ((t_ldcd)newldcd);
}