minishell
Minishell Project for École 42
Loading...
Searching...
No Matches
main.c File Reference

Entry point of the minishell project. More...

#include "minishell.h"
Include dependency graph for main.c:

Functions

int main (int ac, char **av, char **envp)
 Main function of the minishell project.
 

Variables

int g_exit_code = 0
 

Detailed Description

Entry point of the minishell project.

Contains the main function of the minishell project. This project is about creating a simple shell.

Function Documentation

◆ main()

int main ( int  ac,
char **  av,
char **  envp 
)

Main function of the minishell project.

Entry point of the minishell project. It initializes the main data structure, increases the SHLVL (environment variable) and starts the program loop.

Parameters
[in]acThe number of cmd-line arguments.
[in]avAn array strings with cmd-line arguments.
[in]envpAn array of strings with enviroment variables.
Returns
An exit status.