-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.c
27 lines (24 loc) · 1.1 KB
/
main.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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* main.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: amezioun <amezioun@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/12/04 04:39:44 by amezioun #+# #+# */
/* Updated: 2024/12/05 07:36:59 by amezioun ### ########.fr */
/* */
/* ************************************************************************** */
#include "minishell.h"
int main(int ac, char **av, char **envp)
{
t_env *env;
(void)av;
env = NULL;
env = convert_env(envp);
set_export_env(&env, "?", "0");
handle_signals();
if (ac == 1)
main_loop(&env);
return (0);
}