2023-10-03 23:09:17 +03:00
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
int main(const int argc, const char **argv) {
|
|
|
|
if (argc > 1) {
|
|
|
|
for (int i = 1; i < argc; i++) {
|
|
|
|
fputs(argv[i], stdout);
|
|
|
|
if (i < argc - 1)
|
|
|
|
putchar(' ');
|
|
|
|
}
|
|
|
|
}
|
2023-11-07 19:41:47 +03:00
|
|
|
|
|
|
|
/* https://pubs.opengroup.org/onlinepubs/009604599/utilities/echo.html */
|
|
|
|
/* This version does not support -n option and escape-sequences */
|
2023-10-03 23:09:17 +03:00
|
|
|
putchar('\n');
|
|
|
|
return 0;
|
|
|
|
}
|