1. 프로토타입
t_list *ft_lstnew(void *content)
2. 용도
3. 리턴값
4. 코드 구현
#include "libft.h"
t_list *ft_lstnew(void *content)
{
t_list *ret;
ret = (t_list*)malloc(sizeof(t_list));
if (ret == 0)
return (NULL);
ret->content = content;
ret->next = NULL;
return (ret);
}
5. 코드 설명