added first builtin

corrected binary execution + added echo
This commit is contained in:
Tanguy MAZE
2018-11-27 18:38:24 +01:00
parent cf788bc62c
commit 4ce47a9f0b
7 changed files with 149 additions and 19 deletions

View File

@@ -6,7 +6,7 @@
/* By: tmaze <tmaze@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2018/11/18 13:12:34 by tmaze #+# #+# */
/* Updated: 2018/11/22 14:47:05 by tmaze ### ########.fr */
/* Updated: 2018/11/27 16:23:49 by tmaze ### ########.fr */
/* */
/* ************************************************************************** */
@@ -17,4 +17,13 @@
# include <sys/stat.h>
# include "libft.h"
typedef struct s_builtin
{
char *cmd;
int (*f)(char **argv, char **envp);
} t_builtin;
int exec_cmd(char **argv, char **env);
int cmd_echo(char **argv, char **env);
#endif