-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.c
36 lines (31 loc) · 1.21 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
28
29
30
31
32
33
34
35
36
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* main.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: lpaulo-m <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/02/25 10:34:20 by lpaulo-m #+# #+# */
/* Updated: 2022/10/11 14:23:59 by lpaulo-m ### ########.fr */
/* */
/* ************************************************************************** */
#include <minishell.h>
static void initialize(int argc, char **argv, char **envp)
{
initialize_shell(argc, argv, envp);
}
static void run_shell(void)
{
repl();
}
static void cleanup(void)
{
cleanup_shell();
}
int main(int argc, char **argv, char **envp)
{
initialize(argc, argv, envp);
run_shell();
cleanup();
return (EXIT_SUCCESS);
}