mirror of
https://github.com/DavidGailleton/42-Push_Swap.git
synced 2026-01-27 00:41:57 +00:00
finish my bonus and not doing the valgrind
This commit is contained in:
@@ -26,7 +26,7 @@ void sa(t_stacks *stacks)
|
||||
a->next->value = stock;
|
||||
stacks->sa++;
|
||||
if (stacks->print)
|
||||
write(1, "sa\n", 3);
|
||||
secure_write(1, "sa\n", 3);
|
||||
}
|
||||
|
||||
void sb(t_stacks *stacks)
|
||||
@@ -42,7 +42,7 @@ void sb(t_stacks *stacks)
|
||||
b->next->value = stock;
|
||||
stacks->sb++;
|
||||
if (stacks->print)
|
||||
write(1, "sb\n", 3);
|
||||
secure_write(1, "sb\n", 3);
|
||||
}
|
||||
|
||||
void ss(t_stacks *stacks)
|
||||
@@ -69,5 +69,5 @@ void ss(t_stacks *stacks)
|
||||
}
|
||||
stacks->ss++;
|
||||
if (stacks->print)
|
||||
write(1, "ss\n", 3);
|
||||
secure_write(1, "ss\n", 3);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user