echo.c (473B)
1 // Copyright 2020 Haelwenn (lanodan) Monnier <contact@hacktivis.me> 2 // Distributed under the terms of the CC-BY-SA-4.0 license 3 4 #include <stdio.h> /* printf(), putchar() */ 5 6 // Note: maybe consider buffering to write(2) only once like in Plan9 7 // https://web.archive.org/web/20150519100236/https://gist.github.com/dchest/1091803#comment-1398629 8 int 9 main(int argc, char *argv[]) 10 { 11 int i; 12 13 for(i = 1; i < argc; i++) 14 printf("%s ", argv[i]); 15 16 putchar('\n'); 17 18 return 0; 19 }