1
0
This repository has been archived on 2024-10-25. You can view files and clone it, but cannot push or open issues or pull requests.
42-1st-piscine/ended/C06/ex01/ft_print_params.c
2023-08-06 20:12:38 +02:00

36 lines
1.1 KiB
C

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_print_params.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: ajoly <ajoly@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/07/28 16:07:09 by ajoly #+# #+# */
/* Updated: 2022/08/02 14:12:31 by ajoly ### ########.fr */
/* */
/* ************************************************************************** */
#include <unistd.h>
int main(int argc, char **argv)
{
int i;
int j;
i = 1;
if (argc >= 1)
{
while (argv[i])
{
j = 0;
while (argv[i][j])
{
write(1, &argv[i][j], 1);
j++;
}
write(1, "\n", 1);
i++;
}
}
}