minishell
Minishell Project for École 42
Loading...
Searching...
No Matches
set_path_executor.c File Reference

Function for setting the path variable for t_executor nodes. More...

#include "minishell.h"
Include dependency graph for set_path_executor.c:

Functions

void set_path_executor (t_executor *list, t_environ_list *environ)
 Sets the path variable for t_executor nodes.
 

Detailed Description

Function for setting the path variable for t_executor nodes.

Function Documentation

◆ set_path_executor()

void set_path_executor ( t_executor list,
t_environ_list environ 
)

Sets the path variable for t_executor nodes.

Sets the path variable for t_executor nodes in the provided linked list. If PATH doesn't exist then t_executor->path remains at default(NULL);

Parameters
listA pointer to the head of the t_executor linked list.
environA pointer to the environ linked list.