-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcheck_arg_bonus.c
32 lines (29 loc) · 1.09 KB
/
check_arg_bonus.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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* check_arg_bonus.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: sanglee2 <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/05/29 21:09:19 by sanglee2 #+# #+# */
/* Updated: 2023/05/29 21:31:51 by sanglee2 ### ########.fr */
/* */
/* ************************************************************************** */
#include "push_swap_bonus.h"
int check_arg(int ac, char **av)
{
int i;
i = 1;
if (ac < 2)
return (1);
while (av[i])
{
if(!*av[i])
{
ft_error();
return(1);
}
i++;
}
return (0);
}