oprations done

This commit is contained in:
KeyZox committed 2024-02-14 11:41:57 +01:00
1 parent 220751604a
commit 7930a36c0c
22 files changed
+113 -190

No files matched your search

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+14 -1
View File
@@ -6,7 +6,7 @@
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/02/06 10:18:01 by adjoly #+# #+# */
/* Updated: 2024/02/08 16:24:36 by adjoly ### ########.fr */
/* Updated: 2024/02/13 13:40:36 by adjoly ### ########.fr */
/* */
/* ************************************************************************** */
@@ -25,3 +25,16 @@ t_stack *ft_stacklast(t_stack *stack)
}
t_stack *ft_stackbeforelast(t_stack *stack)
{
t_stack *tmp;
if (!stack)
return (NULL);
tmp = stack;
while (tmp && tmp->next && tmp->next->next)
tmp = tmp->next;
return (tmp);
}
Binary file not shown.
Binary file not shown.
Binary file not shown.