tiny-shell 0.2
A mini shell project aiming to gain knowledge about Win32 and Linux API
Loading...
Searching...
No Matches
cd.h File Reference
#include "../os/type.h"
#include "res.h"
Include dependency graph for cd.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

enum run_result run_cd (os_char *new_dir)
 Change current working directory.
 

Function Documentation

◆ run_cd()

enum run_result run_cd ( os_char * new_dir)

Change current working directory.

Definition at line 4 of file cd.c.

4 {
5 return change_cwd(new_dir) ? RUN_OK : RUN_FAILED;
6}
bool change_cwd(const os_char *new_dir)
Attempt to change current working directory.
@ RUN_OK
Definition res.h:7
@ RUN_FAILED
Definition res.h:9

References change_cwd(), RUN_FAILED, and RUN_OK.

Referenced by invoke_runner().

Here is the call graph for this function:
Here is the caller graph for this function: