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

The file containing the replace_variable functions. More...

Functions

char * clear_var (char *variable)
 Clear the variable.
 
int replace_variables (mysh_t *mysh)
 Replace the variables in the command arguments.
 

Detailed Description

The file containing the replace_variable functions.

Function Documentation

◆ clear_var()

char * clear_var ( char * variable)

Clear the variable.

Parameters
variableThe variable
Returns
char * The cleared variable

◆ replace_variables()

int replace_variables ( mysh_t * mysh)

Replace the variables in the command arguments.

Parameters
myshThe shell structure
Returns
int/b> The new command arguments