finish the bonus just need to verify some files i guess

This commit is contained in:
Maoake Teriierooiterai
2026-01-14 10:22:15 +01:00
parent fe69eeb821
commit 68dbe33733
18 changed files with 116 additions and 60 deletions

View File

@@ -25,7 +25,8 @@ void sa(t_stacks *stacks)
a->value = a->next->value;
a->next->value = stock;
stacks->sa++;
write(1, "sa\n", 3);
if (stacks->print)
write(1, "sa\n", 3);
}
void sb(t_stacks *stacks)
@@ -40,7 +41,8 @@ void sb(t_stacks *stacks)
b->value = b->next->value;
b->next->value = stock;
stacks->sb++;
write(1, "sb\n", 3);
if (stacks->print)
write(1, "sb\n", 3);
}
void ss(t_stacks *stacks)
@@ -66,5 +68,6 @@ void ss(t_stacks *stacks)
a->next->value = stock;
}
stacks->ss++;
write(1, "ss\n", 3);
if (stacks->print)
write(1, "ss\n", 3);
}