-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_sort_2.c
23 lines (21 loc) · 1.05 KB
/
ft_sort_2.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_sort_2.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: marias-e <[email protected] +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/12/13 13:12:10 by marias-e #+# #+# */
/* Updated: 2022/12/16 15:21:01 by marias-e ### ########.fr */
/* */
/* ************************************************************************** */
#include "push_swap.h"
/*
* Sorts a list of 2 numbers.
*/
void ft_sort_2(t_list **stack_a)
{
if ((*stack_a)->content > (*stack_a)->next->content)
ft_printf("sa\n");
ft_exit(0);
}