tiny-shell
0.2
A mini shell project aiming to gain knowledge about Win32 and Linux API
Loading...
Searching...
No Matches
source
runner
cd.c
Go to the documentation of this file.
1
#include "
cd.h
"
2
#include "
../os/operations.h
"
3
4
enum
run_result
run_cd
(os_char *new_dir) {
5
return
change_cwd
(new_dir) ?
RUN_OK
:
RUN_FAILED
;
6
}
run_cd
enum run_result run_cd(os_char *new_dir)
Change current working directory.
Definition
cd.c:4
cd.h
operations.h
change_cwd
bool change_cwd(const os_char *new_dir)
Attempt to change current working directory.
run_result
run_result
Result of the execution of a command line.
Definition
res.h:6
RUN_OK
@ RUN_OK
Definition
res.h:7
RUN_FAILED
@ RUN_FAILED
Definition
res.h:9
Generated on Mon Jun 16 2025 14:35:16 for tiny-shell by
1.13.2