Skip to content

shell Module

Aarik Pokras edited this page Dec 14, 2024 · 3 revisions

Functions

execute

Execute a command in the shell and get its return value.

int execute(const char *command)

move_file

Move or rename a file. A non-zero value of this function indicates a failure. It will warn the user before the operation is performed.

int move_file(const char* origin, const char* destination)

You may be wondering why this is not in the fs module. This is because things in the fs module use file streams, whereas things in the shell module use the shell.

Clone this wiki locally