tiny-shell 0.2
A mini shell project aiming to gain knowledge about Win32 and Linux API
Loading...
Searching...
No Matches
help.c File Reference
#include "help.h"
#include "../core/io_wrap.h"
Include dependency graph for help.c:

Go to the source code of this file.

Functions

enum run_result run_help ()
 Display help message.
 

Function Documentation

◆ run_help()

enum run_result run_help ( )

Display help message.

Definition at line 4 of file help.c.

4 {
5 format_output("addpath append new path to PATH\n"
6 "cd change directory\n"
7 "child show all child processes\n"
8 "clear clear the console\n"
9 "date get current date\n"
10 "delete delete a file permanently\n"
11 "env get environment variables\n"
12 "exit exit shell\n"
13 "help print this message\n"
14 "kill kill a process\n"
15 "list list all running processes\n"
16 "lsdir list of files and subdirs in a directory\n"
17 "resume resume a suspended process\n"
18 "set set environment variable\n"
19 "stop suspend a process\n"
20 "time get current time\n"
21 "unset unset environment variable\n");
22 return RUN_OK;
23}
void format_output(char *fmt,...)
Used format_xxx instead of printf and such for uniform output.
Definition io_wrap.c:80
@ RUN_OK
Definition res.h:7

References format_output(), and RUN_OK.

Referenced by invoke_runner().

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