Minishell
Loading...
Searching...
No Matches
read_input.h File Reference
#include "main.h"
Include dependency graph for read_input.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void read_from_pipe (data_t *data)
 
void read_from_terminal (data_t *data)
 

Function Documentation

◆ read_from_pipe()

void read_from_pipe ( data_t * data)

Reads the input using getline this function will only run if the input is not directrly written in the terminal and comes from file or pipe

Parameters
dataGlobal data structure
Here is the call graph for this function:

◆ read_from_terminal()

void read_from_terminal ( data_t * data)

Reads the input using read with non-cannonical mode only when the input comes from the terminal

Parameters
dataGlobal data structure
Here is the call graph for this function: