diff options
Diffstat (limited to 'include/builtin.h')
| -rw-r--r-- | include/builtin.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/include/builtin.h b/include/builtin.h new file mode 100644 index 0000000..1c99ef5 --- /dev/null +++ b/include/builtin.h @@ -0,0 +1,20 @@ +/* + * + */ +#ifndef H_HUSH_BUILTIN +#define H_HUSH_BUILTIN + +#include <limits.h> +#include <unistd.h> + +#include "command.h" +#include "variables.h" + +/* + * Check if the provided command corresponds with a known built-in + * function. If so, run the builtin and return true. If not, return + * false. + */ +bool run_builtin(command *cmd); + +#endif |