Skip to content

Commit

Permalink
fixing pointer location
Browse files Browse the repository at this point in the history
  • Loading branch information
biralavor committed Jun 5, 2024
1 parent 17a1799 commit 8496c2a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions program_to_test/src/ft_do_rotate_fts.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,26 @@
/* By: umeneses <umeneses@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/06/04 12:24:04 by umeneses #+# #+# */
/* Updated: 2024/06/04 18:58:30 by umeneses ### ########.fr */
/* Updated: 2024/06/05 11:50:14 by umeneses ### ########.fr */
/* */
/* ************************************************************************** */

#include "push_swap.h"

void ft_do_rotate_a(t_stack *stack)
void ft_do_rotate_a(t_stack **stack)
{
ft_rotate(&stack);
ft_rotate(stack);
ft_putstr_fd("ra\n", 1);
}

void ft_do_rotate_b(t_stack *stack)
void ft_do_rotate_b(t_stack **stack)
{
ft_rotate(&stack);
ft_rotate(stack);
ft_putstr_fd("rb\n", 1);
}

void ft_do_rotate_ab(t_stack *stack_a, t_stack *stack_b)
void ft_do_rotate_ab(t_stack **stack_a, t_stack **stack_b)
{
ft_rotate_ab(&stack_a, &stack_b);
ft_rotate_ab(stack_a, stack_b);
ft_putstr_fd("rr\n", 1);
}

0 comments on commit 8496c2a

Please sign in to comment.