Minishell
Loading...
Searching...
No Matches
cd.c File Reference
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <linux/limits.h>
#include "../../include/builtins.h"
#include "../../include/env.h"
#include "../../include/utils.h"
Include dependency graph for cd.c:

Functions

int cd_dir (data_t *data, run_command_t *command)
 
int load_from_home (data_t *data, run_command_t *command)
 
int builtin_cd (data_t *data, run_command_t *command)
 

Function Documentation

◆ builtin_cd()

int builtin_cd ( data_t * data,
run_command_t * command )
Here is the call graph for this function:

◆ cd_dir()

int cd_dir ( data_t * data,
run_command_t * command )

After loading the absolute path of the directory, this function will cd

Parameters
dataGlobal data structure
commandCurrent command item
Returns
0 if everything went ok, 84 if there was an error
Here is the call graph for this function:

◆ load_from_home()

int load_from_home ( data_t * data,
run_command_t * command )
Here is the call graph for this function: