ajustement stop pour exit et usage

This commit is contained in:
hugogogo
2021-06-14 22:36:42 +02:00
parent 10827d9fae
commit 825b82905b
2 changed files with 10 additions and 9 deletions

View File

@@ -3,7 +3,8 @@
void ps_usage(void)
{
ft_printf("usage\n");
ft_printf("usage :\n");
ft_printf("launch executable : ./push_swap [flag -p] nb nb nb nb nb ...\n");
}
void ps_error(int err)
@@ -12,7 +13,6 @@ void ps_error(int err)
ps_usage();
if (err == 2)
ft_printf("error\n");
exit(0);
}
void ps_stop(t_stack *stack_a, t_stack *stack_b, t_list *solution, int err)