sample Flashcards

1
Q
void ft_lstadd_back(t_list **alst, t_list *new)
{
           t_list *tmp;

           if (alst)
           {
                      if (*alst == NULL)
                                 *alst = new;
                     else
                     {
                                 tmp = ft_lstlast(*(alst));
                                 tmp->next = new;
                     }
           }
}
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly