repo.or.cz
/
simpleshell.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Added an array of structs describing builtins, so as to not have to add
[simpleshell.git]
/
builtins.h
blob
56afdeb9a455b9658ce15002a80454a7ec8f085b
1
#ifndef _BUILTINS_H
2
#define _BUILTIN_H
3
struct
SH_BUILTIN
{
4
char
*
name
;
5
int
(*
command
)(
char
**);
6
char
*
help
;
7
};
8
9
int
help_cmd
(
char
**
argv
);
10
int
exit_cmd
(
char
**
argv
);
11
int
kill_cmd
(
char
**
argv
);
12
int
cd_cmd
(
char
**
argv
);
13
#endif