oprations done
This commit is contained in:
BIN
stack/ft_stackadd_back.o
Normal file
BIN
stack/ft_stackadd_back.o
Normal file
Binary file not shown.
BIN
stack/ft_stackadd_front.o
Normal file
BIN
stack/ft_stackadd_front.o
Normal file
Binary file not shown.
BIN
stack/ft_stackclear.o
Normal file
BIN
stack/ft_stackclear.o
Normal file
Binary file not shown.
BIN
stack/ft_stackdelone.o
Normal file
BIN
stack/ft_stackdelone.o
Normal file
Binary file not shown.
@ -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
BIN
stack/ft_stacklast.o
Normal file
Binary file not shown.
BIN
stack/ft_stacknew.o
Normal file
BIN
stack/ft_stacknew.o
Normal file
Binary file not shown.
BIN
stack/ft_stacksize.o
Normal file
BIN
stack/ft_stacksize.o
Normal file
Binary file not shown.
Reference in New Issue
Block a user