-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_inv_and_arg_init.c
37 lines (33 loc) · 1.3 KB
/
ft_inv_and_arg_init.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
34
35
36
37
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_inv_and_arg_init.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: aoueldma <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/01/26 15:54:39 by aoueldma #+# #+# */
/* Updated: 2023/01/26 15:54:43 by aoueldma ### ########.fr */
/* */
/* ************************************************************************** */
#include "minishell.h"
void ft_args_check(int ac, char **env, t_envir **envir, t_envir **exp)
{
if (ac != 1)
{
printf("arg...error!!!\nprogram...exit...byye!!!\n");
exit(0);
}
ft_intro();
init_env(envir, exp);
ft_copy_env(env, envir);
ft_copy_env(env, exp);
}
void ft_intro(void)
{
printf("\n\n\t\t\t\t\t\\\\\\\\ WELCOME TO MINISHELL //// \n\n");
}
void init_env(t_envir **env, t_envir **exp)
{
env = NULL;
exp = NULL;
}