remove inputs
This commit is contained in:
19
2022/2/libft/ft_lstlast.c
Executable file
19
2022/2/libft/ft_lstlast.c
Executable file
@ -0,0 +1,19 @@
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* ft_lstlast.c :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: tomoron <marvin@42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2023/11/01 15:47:49 by tomoron #+# #+# */
|
||||
/* Updated: 2023/11/02 01:13:36 by tomoron ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
#include "libft.h"
|
||||
|
||||
t_list *ft_lstlast(t_list *lst)
|
||||
{
|
||||
while (lst && lst -> next)
|
||||
lst = lst -> next;
|
||||
return (lst);
|
||||
}
|
Reference in New Issue
Block a user