Minishell
 
Loading...
Searching...
No Matches
CD Functions

Functions for CD (change directory) More...

Functions

void change_cwd (t_data *data, t_bool is_pwd)
 Change the values of ENV VAR.
 
int change_cwd_to_home (t_env_vars *env)
 
int change_cwd_to_previous_cwd (t_env_vars *env)
 

Detailed Description

Functions for CD (change directory)

Function Documentation

◆ change_cwd()

void change_cwd ( t_data * data,
t_bool is_pwd )

Change the values of ENV VAR.

Parameters
datadata structure
is_pwd1 for PWD, 0 for OLD_PWD
Here is the call graph for this function:

◆ change_cwd_to_home()

int change_cwd_to_home ( t_env_vars * env)
Here is the call graph for this function:

◆ change_cwd_to_previous_cwd()

int change_cwd_to_previous_cwd ( t_env_vars * env)
Here is the call graph for this function: