invalid maps
This commit is contained in:
18
Oglibft/libft/srcs/ft_lstgetlast.c
Normal file
18
Oglibft/libft/srcs/ft_lstgetlast.c
Normal 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/12 12:23:02 by tmaze ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "libft.h"
|
||||
|
||||
t_list *ft_lstgetlast(t_list *lst)
|
||||
{
|
||||
return (ft_lstgetat(lst, ft_lstsize(lst) - 1));
|
||||
}
|
Reference in New Issue
Block a user