-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsmall_sort_two.c
19 lines (18 loc) · 1.01 KB
/
small_sort_two.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* small_sort_two.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: yst-laur <[email protected] +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/03/09 14:24:35 by yst-laur #+# #+# */
/* Updated: 2022/03/09 14:24:37 by yst-laur ### ########.fr */
/* */
/* ************************************************************************** */
#include "push_swap.h"
void small_sort_two(t_stack stack)
{
if (*stack.stackasize == 2)
if (stack.stacka[0] > stack.stacka[1])
sa(stack);
}