minishell
ft_lstlast.c File Reference
#include <stddef.h>
#include "ft_lst.h"
Include dependency graph for ft_lstlast.c:

Go to the source code of this file.

Functions

t_listft_lstlast (t_list *lst)
 

Function Documentation

◆ ft_lstlast()

t_list* ft_lstlast ( t_list lst)

Definition at line 16 of file ft_lstlast.c.

17 {
18  if (lst != NULL)
19  while (lst->next != NULL)
20  lst = lst->next;
21  return (lst);
22 }
struct s_list * next
Definition: ft_lst.h:20
Here is the caller graph for this function: