ps_stop fonctionne
This commit is contained in:
16
srcs/print.c
Normal file
16
srcs/print.c
Normal file
@@ -0,0 +1,16 @@
|
||||
|
||||
#include "pushswap.h"
|
||||
|
||||
void print_stack(t_stack *stack)
|
||||
{
|
||||
ft_putstr("[");
|
||||
while (stack)
|
||||
{
|
||||
ft_printf("%i", stack->n);
|
||||
stack = stack->next;
|
||||
if (stack)
|
||||
ft_putstr("; ");
|
||||
}
|
||||
ft_putstr("]\n");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user