Go to the documentation of this file.
28 m_help =
"Change the current working directory";
33 if (
chdir(params[0]) != 0)
#define EXIT_FAILURE
Unsuccessful termination.
C int errno
The lvalue errno is used by many functions to return error values.
Builtin command for the Shell.
const char * m_help
Command help text.
const char * getName() const
Get command name.
char * strerror(int errnum)
The strerror function maps the number in errnum to a message string.
unsigned int Size
Any sane size indicator cannot go negative.
ChangeDirCommand()
Constructor function.
#define EXIT_SUCCESS
Successful termination.
virtual int execute(const Size nparams, const char **params)
Executes the command.
#define ERROR(msg)
Output an error message.
int chdir(const char *filepath)
Change working directory.