k9core/src/echo.c

15 lines
288 B
C
Raw Normal View History

2020-06-01 19:37:33 +00:00
#include <string.h>
#include <stdio.h>
#include <unistd.h>
int
main(int argc, char *argv[])
{
while(*argv) {
(void)fputs(*argv, stdout); // Print argv
if(*++argv) putchar(' '); // If multiple things in argv, print a space between them.
}
putchar('\n');
return 0;
}