-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlst_create.c
executable file
·27 lines (24 loc) · 1.08 KB
/
lst_create.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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* lst_create.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: luperez <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2014/11/16 03:53:27 by luperez #+# #+# */
/* Updated: 2014/12/21 23:56:33 by luperez ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
void *lst_create(void *lst)
{
size_t len;
len = sizeof(lst);
if (len < 1)
return (NULL);
lst = (void *)malloc(len);
if (lst == NULL)
return (NULL);
ft_bzero(lst, len);
return (lst);
}