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

The file containing the globbing functions. More...

Functions

int get_args_list (char *arg, node_t **args_list)
 Get the file list from a globbing argument.
 
char ** globbing (char **args)
 Analyse and change the arguments if there are globbing.
 

Detailed Description

The file containing the globbing functions.

Function Documentation

◆ get_args_list()

int get_args_list ( char * arg,
node_t ** args_list )

Get the file list from a globbing argument.

Parameters
argThe argument
args_listThe list of arguments for the command
Returns
int 0 if success, -1 if error

◆ globbing()

char ** globbing ( char ** args)

Analyse and change the arguments if there are globbing.

Analyse if arguments are globbing.

Parameters
argsThe command arguments
Returns
char ** The new command arguments
Note
Pushing each argument in a list and then converting it to an array