-
Notifications
You must be signed in to change notification settings - Fork 0
/
push_swap.c
33 lines (30 loc) · 1.17 KB
/
push_swap.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* push_swap.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: oadewumi <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/03/19 14:31:13 by oadewumi #+# #+# */
/* Updated: 2024/05/24 16:53:04 by oadewumi ### ########.fr */
/* */
/* ************************************************************************** */
#include "push_swap.h"
int main(int argc, char **argv)
{
char **input_args;
if (argc < 2)
return (0);
if (argc == 2)
{
evaluate_inp_arg(argv);
input_args = ft_split(argv[1], 32);
}
else
{
input_args = &argv[1];
}
sanitize_args(input_args);
ft_sort_mom(argc, input_args);
return (0);
}