ft_lstadd_front

nawkim·2021년 5월 26일
0

libft

목록 보기
36/44

1. 프로토타입

void	ft_lstadd_front(t_list **lst, t_list *new)

2. 용도

3. 리턴값

4. 코드 구현

#include "libft.h"

void	ft_lstadd_front(t_list **lst, t_list *new)
{
	if (lst == NULL || new == NULL)
		return ;
	new->next = *lst;
	*lst = new;
}

5. 코드 설명

profile
공부 기록.

0개의 댓글