added gitignore + droped tables func
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
/* By: tmaze <tmaze@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2018/04/17 20:55:26 by tmaze #+# #+# */
|
||||
/* Updated: 2018/04/19 14:32:44 by tmaze ### ########.fr */
|
||||
/* Updated: 2018/11/26 12:30:30 by tmaze ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
|
||||
t_list *ft_lstaddend(t_list **alst, t_list *new)
|
||||
{
|
||||
t_list **tmp;
|
||||
t_list *tmp;
|
||||
|
||||
if (new == NULL)
|
||||
return (NULL);
|
||||
@@ -22,10 +22,8 @@ t_list *ft_lstaddend(t_list **alst, t_list *new)
|
||||
ft_lstadd(alst, new);
|
||||
else if (ft_lstsize(*alst) > 0)
|
||||
{
|
||||
if ((tmp = (t_list**)malloc(sizeof(t_list*))) == NULL)
|
||||
return (NULL);
|
||||
*tmp = ft_lstgetlast(*alst);
|
||||
ft_lstadd(&(*tmp)->next, new);
|
||||
tmp = ft_lstgetlast(*alst);
|
||||
ft_lstadd(&(tmp->next), new);
|
||||
}
|
||||
return (*alst);
|
||||
}
|
||||
|
Reference in New Issue
Block a user