void push(t_stack *stack, int mode)
Push the first element from stack 1 or 2 into the other stack, depending on whether mode is set to 0 ...
void r_rot(t_stack *stack, int mode)
Shift all elements in stack 1, 2, or both up, depending on whether mode is set to 0,...
void rot(t_stack *stack, int mode)
Shift all elements in stack 1, 2, or both down, depending on whether mode is set to 0,...
void swap(t_stack *stack, int mode)
Swap the first two elements in stacks 1, 2, or both, depending on whether mode is set to 0,...
int is_sorted(t_stack *stack, int mode)
Check if the contents of a stack are in the correct order relative to the smallest element.