-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_print_params.c
36 lines (32 loc) · 1.11 KB
/
ft_print_params.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
28
29
30
31
32
33
34
35
36
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_print_params.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: flo-dolc <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/10/05 15:59:48 by flo-dolc #+# #+# */
/* Updated: 2023/10/05 16:25:17 by flo-dolc ### ########.fr */
/* */
/* ************************************************************************** */
#include <unistd.h>
void ft_putstr(char *str)
{
while (*str != '\0')
{
write(1, str, 1);
str++;
}
}
int main(int argc, char **argv)
{
int i;
i = 1;
while (i < argc)
{
ft_putstr(argv[i]);
i++;
write(1, "\n", 1);
}
return (0);
}