-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.c
37 lines (34 loc) · 1.42 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
37
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* main.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: ulyildiz <ulyildiz@student.42kocaeli.com.t +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/05/23 11:33:28 by ulyildiz #+# #+# */
/* Updated: 2024/05/23 11:33:28 by ulyildiz ### ########.fr */
/* */
/* ************************************************************************** */
#include <stdio.h>
#include "functions.h"
#include "42-libft/libft.h"
int main(int ac, char** av, char **env)
{
t_main shell;
//signal_reciever();
av = (void *)av;
if (ac >=2)
return(ft_putstr_fd("Too much argument.", 2), 1);
if (!initialize(&shell, env))
return (perror("Initialize"), 1);
start_shell(&shell);
//main_free(&shell);
/* shell.cmd = NULL;
shell.cmd_line = NULL;
shell.envs = NULL;
shell.paths = NULL;
shell.prompt = NULL;
shell.token = NULL;
system("Leaks minishell"); */
return (0);
}