diff options
Diffstat (limited to 'c12/ex00/ft_create_elem.c')
| -rw-r--r-- | c12/ex00/ft_create_elem.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/c12/ex00/ft_create_elem.c b/c12/ex00/ft_create_elem.c index 092833b..472595c 100644 --- a/c12/ex00/ft_create_elem.c +++ b/c12/ex00/ft_create_elem.c @@ -6,18 +6,18 @@ /* By: cacharle <charles.cabergs@gmail.com> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2019/07/09 17:19:22 by cacharle #+# #+# */ -/* Updated: 2019/07/17 18:34:23 by cacharle ### ########.fr */ +/* Updated: 2019/07/23 15:16:58 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ #include <stdlib.h> #include "ft_list.h" -t_list *ft_create_elem(void *data) +t_list *ft_create_elem(void *data) { t_list *list; - if((list = (t_list*)malloc(sizeof(t_list))) == NULL) + if ((list = (t_list*)malloc(sizeof(t_list))) == NULL) return (NULL); list->data = data; list->next = NULL; |
