|
|
@ -0,0 +1,22 @@ |
|
|
|
/* ************************************************************************** */ |
|
|
|
/* */ |
|
|
|
/* ::: :::::::: */ |
|
|
|
/* aff_last_param.c :+: :+: :+: */ |
|
|
|
/* +:+ +:+ +:+ */ |
|
|
|
/* By: alucas <marvin@42.fr> +#+ +:+ +#+ */ |
|
|
|
/* +#+#+#+#+#+ +#+ */ |
|
|
|
/* Created: 2020/08/27 10:18:23 by alucas #+# #+# */ |
|
|
|
/* Updated: 2020/08/27 10:29:02 by alucas ### ########.fr */ |
|
|
|
/* */ |
|
|
|
/* ************************************************************************** */ |
|
|
|
|
|
|
|
#include <unistd.h> |
|
|
|
|
|
|
|
int main(int argc, char **argv) |
|
|
|
{ |
|
|
|
if (argc > 1) |
|
|
|
while (*argv[argc - 1]) |
|
|
|
write(1, argv[argc - 1]++, 1); |
|
|
|
write(1, "\n", 1); |
|
|
|
return (0); |
|
|
|
} |