ft_lstgetlast

This commit is contained in:
Tanguy MAZE
2018-04-09 17:47:59 +02:00
parent c1ab9e325f
commit 02f4097b16
3 changed files with 22 additions and 3 deletions

18
ft_lstgetlast.c Normal file
View File

@@ -0,0 +1,18 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_lstgetlast.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: tmaze <tmaze@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2018/04/09 17:34:10 by tmaze #+# #+# */
/* Updated: 2018/04/09 17:39:37 by tmaze ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
t_list *ft_lstgetlast(t_list *lst)
{
return (ft_lstgetat(lst, ft_lstsize(lst) - 1));
}