micro-utils/coreutils/echo.c

15 lines
221 B
C
Raw Normal View History

#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(' ');
}
}
putchar('\n');
return 0;
}