maxishell
Implementation of a shell for Linux-like systems
Loading...
Searching...
No Matches
main.c File Reference
#include "test.h"
#include "shell.h"
#include <stdio.h>
#include <stdlib.h>
Include dependency graph for main.c:

Go to the source code of this file.

Functions

int main (int argc, char **argv, char **envp)
 

Function Documentation

◆ main()

int main ( int  argc,
char **  argv,
char **  envp 
)

Definition at line 18 of file main.c.

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}
void env_tests(t_ms_data *data, char **envp)
Definition env_test.c:25
#define EXIT_FAILURE
Definition exit_status.h:17
int ft_printf(const char *format,...)
Definition ft_printf.c:37
void pipe_tests(t_ms_data *data)
Definition pipe_test.c:22

References env_tests(), EXIT_FAILURE, ft_printf(), and pipe_tests().

Here is the call graph for this function: