-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathhelpA.c
48 lines (43 loc) · 1001 Bytes
/
helpA.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#include "header.h"
/**
* h_alias - help function to explain how the associated function works
*/
void h_alias(void)
{
_puts("\nUsage: $ alias [NAME]=[VALUE]");
_puts("\tDefine or display aliases, in the form:");
_puts("\n\talias [NAME]=[VALUE]");
}
/**
* h_cd - help function to explain how the associated function works
*/
void h_cd(void)
{
_puts("\nUsage: $ cd");
_puts("\tChange the shell working directory.");
}
/**
* h_env - help function to explain how the associated function works
*/
void h_env(void)
{
_puts("\nUsage: $ env");
_puts("\tDisplay all environmental variables, in the form:");
_puts("\n\t[NAME]=[VALUE]");
}
/**
* h_exit - help function to explain how the associated function works
*/
void h_exit(void)
{
_puts("\nUsage: $ exit");
_puts("\tExit the shell.");
}
/**
* h_help - help function to explain how the associated function works
*/
void h_help(void)
{
_puts("\nUsage: $ help [command]");
_puts("\tDisplay information about builtin commands.");
}