Archived
1
0

oprations done

This commit is contained in:
2024-02-14 11:41:57 +01:00
parent 220751604a
commit 7930a36c0c
22 changed files with 113 additions and 190 deletions

BIN
stack/ft_stackadd_back.o Normal file

Binary file not shown.

BIN
stack/ft_stackadd_front.o Normal file

Binary file not shown.

BIN
stack/ft_stackclear.o Normal file

Binary file not shown.

BIN
stack/ft_stackdelone.o Normal file

Binary file not shown.

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);
}

BIN
stack/ft_stacklast.o Normal file

Binary file not shown.

BIN
stack/ft_stacknew.o Normal file

Binary file not shown.

BIN
stack/ft_stacksize.o Normal file

Binary file not shown.