32 lines
1.1 KiB
C
32 lines
1.1 KiB
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* ft_rev_params.c :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: gtertysh <marvin@42.fr> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2016/11/02 16:16:06 by gtertysh #+# #+# */
|
|
/* Updated: 2016/11/02 19:08:19 by gtertysh ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
int ft_putchar(char c);
|
|
|
|
void ft_putstr(char *str)
|
|
{
|
|
while (*str)
|
|
{
|
|
ft_putchar(*str);
|
|
str++;
|
|
}
|
|
}
|
|
|
|
int main(int argc, char **argv)
|
|
{
|
|
while (argc-- > 1)
|
|
{
|
|
ft_putstr(argv[argc]);
|
|
ft_putchar('\n');
|
|
}
|
|
return (0);
|
|
}
|