-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_echo.c
More file actions
30 lines (27 loc) · 1.08 KB
/
ft_echo.c
File metadata and controls
30 lines (27 loc) · 1.08 KB
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
28
29
30
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_echo.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: sid-bell <sid-bell@student.1337.ma> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2018/09/04 00:33:37 by sid-bell #+# #+# */
/* Updated: 2019/02/24 00:05:05 by sid-bell ### ########.fr */
/* */
/* ************************************************************************** */
#include "minishell.h"
void ft_echo(t_params *params)
{
int i;
char **args;
i = 1;
args = params->args;
while (args[i])
{
ft_putstr(args[i]);
i++;
if (args[i])
ft_putchar(' ');
}
ft_putchar('\n');
}