Minishell
 
Loading...
Searching...
No Matches
Debug Functions

Functions to help debugging faster. More...

Functions

void print_list_files (t_command *command)
 Print the list of files in the command structure.
 
void print_perm_files (t_command *command)
 Print the list of permissions of files in the command structure.
 
void print_toks (char **tokens)
 Print tokens indexed.
 
void print_command_fd (t_command *command)
 
ssize_t print_command (t_command *command)
 Print the command structure with it's tokens.
 
ssize_t print_commands (t_command **command)
 Print the commands structure with it's tokens.
 

Detailed Description

Functions to help debugging faster.

Function Documentation

◆ print_command()

ssize_t print_command ( t_command * command)

Print the command structure with it's tokens.

Parameters
commandcommand structure
Returns
ssize_t 0 or positive is OK, otherwise error

◆ print_command_fd()

void print_command_fd ( t_command * command)

◆ print_commands()

ssize_t print_commands ( t_command ** command)

Print the commands structure with it's tokens.

Parameters
commandcommand structure
Returns
ssize_t 0 or positive is OK, otherwise error
Here is the call graph for this function:

◆ print_list_files()

void print_list_files ( t_command * command)

Print the list of files in the command structure.

Parameters
commandcommand structure

◆ print_perm_files()

void print_perm_files ( t_command * command)

Print the list of permissions of files in the command structure.

Parameters
commandcommand structure

◆ print_toks()

void print_toks ( char ** tokens)

Print tokens indexed.

Parameters
tokenstokens to print