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

The file containing the input_command functions. More...

Functions

input_command_tinit_input_command (char *command)
 Initialize the input command.
 
input_command_tvalidate_input_command (input_command_t *input_command, char inhibitors)
 Validate the input command.
 
input_command_tget_input_command (char *command)
 Get the input command.
 
void display_input_command (input_command_t *input_command)
 Display the input command.
 

Detailed Description

The file containing the input_command functions.

Function Documentation

◆ display_input_command()

void display_input_command ( input_command_t * input_command)

Display the input command.

Note
The function is used for debugging
Parameters
input_commandThe input command
Returns
void

◆ get_input_command()

input_command_t * get_input_command ( char * command)

Get the input command.

Parameters
commandThe command
Returns
input_command_t * The input command

◆ init_input_command()

input_command_t * init_input_command ( char * command)

Initialize the input command.

Parameters
commandThe command
Returns
input_command_t * The input command

◆ validate_input_command()

input_command_t * validate_input_command ( input_command_t * input_command,
char inhibitors )

Validate the input command.

Parameters
input_commandThe input command
inhibitorsThe inhibitors
Returns
input_command_t * The input command if it is valid, NULL otherwise