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

The file containing the if builtin. More...

Functions

int exec_else_if (mysh_t *mysh, char **line_content)
 The else if builtin.
 
int exec_if (mysh_t *mysh)
 The if builtin.
 

Detailed Description

The file containing the if builtin.

Function Documentation

◆ exec_else_if()

int exec_else_if ( mysh_t * mysh,
char ** line_content )

The else if builtin.

Parameters
myshThe shell structure
line_contentThe command arguments
Returns
int 0 if the command succeed, 1 otherwise

◆ exec_if()

int exec_if ( mysh_t * mysh)

The if builtin.

Parameters
myshThe shell structure
Returns
int 0 if the command succeed, 1 otherwise