Restart from scratch
branched out on dev removed all previous source files started test on new env2lst function
This commit is contained in:
@@ -1,28 +0,0 @@
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* cmd_echo.c :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: tmaze <tmaze@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2018/11/27 16:14:07 by tmaze #+# #+# */
|
||||
/* Updated: 2019/01/13 16:58:14 by tmaze ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "minishell.h"
|
||||
|
||||
int cmd_echo(char **argv, t_list **env)
|
||||
{
|
||||
size_t i;
|
||||
|
||||
(void)env;
|
||||
i = 0;
|
||||
while (argv[0] && argv[++i])
|
||||
{
|
||||
ft_putstr(argv[i]);
|
||||
ft_putchar(' ');
|
||||
}
|
||||
ft_putchar('\n');
|
||||
return (0);
|
||||
}
|
Reference in New Issue
Block a user