-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuiltin2.c
64 lines (58 loc) · 1.4 KB
/
builtin2.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#include "shell.h"
/**
* _myhistory - displays the history list, one command by line, preceded
* with line numbers, starting at 0.
* @info: Structure containing potential arguments. Used to maintain
* constant function prototype.
* Return: Always 0
*/
int _myhistory(info_t *info)
{
(void)info; /* Unused parameter */
return (0);
}
/**
* unset_alias - unsets an alias by removing it from the list
* @info: parameter struct
* @str: the string alias
* Return: Always 0 on success, 1 on error
*/
int unset_alias(info_t *info, char *str)
{
(void)info; /* Unused parameter */
(void)str; /* Unused parameter */
return (0);
}
/**
* set_alias - sets an alias to a string
* @info: parameter struct
* @str: the string alias
* Return: Always 0 on success, 1 on error
*/
int set_alias(info_t *info, char *str)
{
(void)info; /* Unused parameter */
(void)str; /* Unused parameter */
return (0);
}
/**
* print_alias - prints an alias string
* @node: the alias node
* Return: Always 0 on success, 1 on error
*/
int print_alias(list_t *node)
{
(void)node; /* Unused parameter */
return (0);
}
/**
* _myalias - mimics the alias builtin (man alias)
* @info: Structure containing potential arguments. Used to maintain
* constant function prototype.
* Return: Always 0
*/
int _myalias(info_t *info)
{
(void)info; /* Unused parameter */
return (0);
}