36 lines
1.1 KiB
C
36 lines
1.1 KiB
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* ft_rev_params.c :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: adjoly <marvin@42.fr> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2023/07/24 09:38:41 by adjoly #+# #+# */
|
|
/* Updated: 2023/07/27 09:49:32 by adjoly ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#include <unistd.h>
|
|
|
|
int main(int ac, char **av)
|
|
{
|
|
int i;
|
|
int j;
|
|
|
|
i = 0;
|
|
(void)ac;
|
|
while (av[i])
|
|
i++;
|
|
while (i > 1)
|
|
{
|
|
j = 0;
|
|
i--;
|
|
while (av[i][j])
|
|
{
|
|
write(1, &av[i][j], 1);
|
|
j++;
|
|
}
|
|
write(1, "\n", 1);
|
|
}
|
|
}
|