sources/ft_list_replace.c
inline void	ft_list_swap(t_list_head *first, t_list_head *second)
{
	t_list_head	tmp;

	tmp.next = first->next;
	tmp.prev = first->prev;
	first->next = second->next;
	first->next->prev = first;
	first->prev = second->prev;
	first->prev->next = first;
	second->next = tmp.next;
	second->next->prev = second;
	second->prev = tmp.prev;
	second->prev->next = second;
}
/*
** ft_list_swap - swap two elements of one or two lists
*/
swap two elements of one or two lists
swap two elements of one or two lists
inline void	ft_list_swap(t_list_head *first, t_list_head *second)
{
	t_list_head	tmp;
	tmp.next = first->next;
	tmp.prev = first->prev;
	first->next = second->next;
	first->next->prev = first;
	first->prev = second->prev;
	first->prev->next = first;
	second->next = tmp.next;
	second->next->prev = second;
	second->prev = tmp.prev;
	second->prev->next = second;
}
inline void ft_list_swap ( t_list_head * first , t_list_head * second ) { t_list_head tmp ; tmp . next = first -> next ; tmp . prev = first -> prev ; first -> next = second -> next ; first -> next -> prev = first ; first -> prev = second -> prev ; first -> prev -> next = first ; second -> next = tmp . next ; second -> next -> prev = second ; second -> prev = tmp . prev ; second -> prev -> next = second ; }
ft_list_swap - swap two elements of one or two lists
ft_list_swap - swap two elements of one or two lists