finish my bonus and not doing the valgrind

This commit is contained in:
Maoake Teriierooiterai
2026-01-14 11:52:32 +01:00
parent e8b2a90dc1
commit 29c60fef6a
5 changed files with 26 additions and 26 deletions

View File

@@ -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);
}