first commit
This commit is contained in:
34
finish/C06/ex01/ft_print_params.c
Normal file
34
finish/C06/ex01/ft_print_params.c
Normal file
@ -0,0 +1,34 @@
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* ft_print_params.c :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: adjoly <marvin@42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2023/07/24 09:26:14 by adjoly #+# #+# */
|
||||
/* Updated: 2023/07/24 09:40:30 by adjoly ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include <unistd.h>
|
||||
|
||||
int main(int ac, char **av)
|
||||
{
|
||||
int i;
|
||||
int j;
|
||||
|
||||
(void)ac;
|
||||
i = 1;
|
||||
j = 0;
|
||||
while (av[i])
|
||||
{
|
||||
j = 0;
|
||||
while (av[i][j])
|
||||
{
|
||||
write(1, &av[i][j], 1);
|
||||
j++;
|
||||
}
|
||||
write(1, "\n", 1);
|
||||
i++;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user