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

Go to the source code of this file.

Functions

int free_env (data_t *data)
 
bool valid_path (char *path)
 
env_node_tfind_env (data_t *data, char *name)
 
int fill_env (data_t *data, char **env)
 
int create_node (data_t *data, char *env)
 
int add_node (data_t *data, env_node_t *node)
 
int remove_node (data_t *data, env_node_t *node)
 

Function Documentation

◆ add_node()

int add_node ( data_t * data,
env_node_t * node )

◆ create_node()

int create_node ( data_t * data,
char * env )
Here is the call graph for this function:

◆ fill_env()

int fill_env ( data_t * data,
char ** env )

This function will save the env array in a linked list and then convert it to an array again to have a duplicated that can be modified

Parameters
dataGlobal program structure
envThe env received as params in main
Returns
0 means everything OK. 84 when error ocurred
Here is the call graph for this function:

◆ find_env()

env_node_t * find_env ( data_t * data,
char * name )
Here is the call graph for this function:

◆ free_env()

int free_env ( data_t * data)
Here is the call graph for this function:

◆ remove_node()

int remove_node ( data_t * data,
env_node_t * node )

◆ valid_path()

bool valid_path ( char * path)