maxishell
Implementation of a shell for Linux-like systems
Loading...
Searching...
No Matches
main.c
Go to the documentation of this file.
1
/* ************************************************************************** */
2
/* */
3
/* ::: :::::::: */
4
/* main.c :+: :+: :+: */
5
/* +:+ +:+ +:+ */
6
/* By: dmdemirk <dmdemirk@student.42london.c +#+ +:+ +#+ */
7
/* +#+#+#+#+#+ +#+ */
8
/* Created: 2024/06/10 16:48:02 by dmdemirk #+# #+# */
9
/* Updated: 2024/06/17 11:04:24 by dmdemirk ### ########.fr */
10
/* */
11
/* ************************************************************************** */
12
13
#include "
test.h
"
14
#include "
shell.h
"
15
#include <stdio.h>
16
#include <stdlib.h>
17
18
int
main
(
int
argc,
char
**argv,
char
**envp)
19
{
20
t_ms_data
data;
21
22
if
(argc > 1)
23
{
24
ft_printf
(
"Usage: %s\n"
, argv[0]);
25
exit(
EXIT_FAILURE
);
26
}
27
pipe_tests
(&data);
28
env_tests
(&data, envp);
29
return
(0);
30
}
env_tests
void env_tests(t_ms_data *data, char **envp)
Definition
env_test.c:25
EXIT_FAILURE
#define EXIT_FAILURE
Definition
exit_status.h:17
ft_printf
int ft_printf(const char *format,...)
Definition
ft_printf.c:37
main
int main(int argc, char **argv, char **envp)
Definition
main.c:71
pipe_tests
void pipe_tests(t_ms_data *data)
Definition
pipe_test.c:22
shell.h
s_ms_data
Definition
shell.h:21
test.h
src
test
main.c
Generated by
1.9.8