diff options
| author | Charles <sircharlesaze@gmail.com> | 2020-02-03 06:34:06 +0100 |
|---|---|---|
| committer | Charles <sircharlesaze@gmail.com> | 2020-02-03 06:34:06 +0100 |
| commit | 2a57d3b97fb27fb24deaa4da894b01e1957a528b (patch) | |
| tree | 85def5b4e7fc3da25b9f4fc25f5c7fe6fb5b9f18 /include/minishell.h | |
| parent | 396f61a507c981bab6e26e2eecf5c1eeba2fd565 (diff) | |
| download | minishell-2a57d3b97fb27fb24deaa4da894b01e1957a528b.tar.gz minishell-2a57d3b97fb27fb24deaa4da894b01e1957a528b.tar.bz2 minishell-2a57d3b97fb27fb24deaa4da894b01e1957a528b.zip | |
TODO list and basic plan
Diffstat (limited to 'include/minishell.h')
| -rw-r--r-- | include/minishell.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/include/minishell.h b/include/minishell.h index 2dc9a38..f47fc65 100644 --- a/include/minishell.h +++ b/include/minishell.h @@ -2,5 +2,34 @@ # define MINISHELL_H # include "libft.h" +# include "libft_ht.h" + + +typedef struct +{ + int argc; + char **argv; +} t_command; + +// void find_exe(char *name); + +typedef int t_status; + +/* +** +*/ + +/* +** builtin*.c +*/ + +typedef t_status (*t_builtin_func)(int argc, char **argv, char **envp); +t_builtin_func ms_echo; +t_builtin_func ms_cd; +t_builtin_func ms_pwd; +t_builtin_func ms_export; +t_builtin_func ms_unset; +t_builtin_func ms_env; +t_builtin_func ms_exit; #endif |
