42sh 1.0.0
Create a shell in C
Loading...
Searching...
No Matches
main.c File Reference

The main file of the project. More...

#include <termios.h>
#include "../include/myshell.h"

Functions

int show_usage (void)
 Show the usage of the shell.
 
int main (int argc, char **argv, char **env)
 Check if the shell can be running and run it or execute the usage.
 

Detailed Description

The main file of the project.

Function Documentation

◆ main()

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

Check if the shell can be running and run it or execute the usage.

Note
The first function called when the program is launched
Parameters
argcThe number of arguments
argvThe arguments
envThe environment variables
Returns
int 0 if the shell is running, 84 if the usage is executed

◆ show_usage()

int show_usage ( void )

Show the usage of the shell.

Returns
int Return 84