Archived
1
0
This repository has been archived on 2024-10-25. You can view files and clone it, but cannot push or open issues or pull requests.
push_swap/print_stack.c

28 lines
1.1 KiB
C
Raw Normal View History

2024-02-22 11:05:04 +01:00
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* print_stack.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/02/15 11:05:52 by adjoly #+# #+# */
/* Updated: 2024/02/15 11:07:42 by adjoly ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft/libft.h"
#include "push_swap.h"
void ft_print_stack(t_stack *stack)
{
t_stack *tmp;
tmp = stack;
while (tmp)
{
ft_putnbr(tmp->nb);
ft_putchar('\n');
tmp = tmp->next;
}
}