-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_echo.c
27 lines (24 loc) · 1.04 KB
/
ft_echo.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_echo.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: sboeuf <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2014/03/27 22:34:39 by sboeuf #+# #+# */
/* Updated: 2014/03/27 22:34:41 by sboeuf ### ########.fr */
/* */
/* ************************************************************************** */
#include "minishell.h"
int ft_echo(int argc, char **argv)
{
int i;
i = 0;
while (++i < argc)
{
aff_str(argv[i]);
aff_c(' ');
}
aff_c('\n');
return (0);
}