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

The file containing the replace alias functions. More...

Functions

void my_sort_alias (node_t **begin, int(*cmp)())
 sort the alias list
 
char ** replace_alias_in_line (char **args, node_t **alias_list)
 Replace the alias if it already exists.
 

Detailed Description

The file containing the replace alias functions.

Function Documentation

◆ my_sort_alias()

void my_sort_alias ( node_t ** begin,
int(* cmp )() )

sort the alias list

Parameters
beginThe alias list
cmpThe compare function
Returns
void

◆ replace_alias_in_line()

char ** replace_alias_in_line ( char ** args,
node_t ** alias_list )

Replace the alias if it already exists.

Parameters
myshThe shell structure
Returns
char ** args to be interpreted and executed