1 /********************************************************************** 2 * 3 * C Source: echo.c 4 * Instance: idc_rads_2 5 * Description: DOS echo Emulation 6 * %created_by: smscm % 7 * %date_created: Fri Apr 20 19:05:31 2001 % 8 * 9 **********************************************************************/ 10 #ifndef lint 11 static char *_csrc = "@(#) %filespec: echo.c~1 % (%full_filespec: echo.c~1:csrc:idc_rads#3 %)"; 12 #endif 13 14 #include <stdio.h> 15 //#include <process.h> 16 #include "clibstuf.h" 17 main(int argc,char ** argv)18void main (int argc, char** argv) 19 { 20 fnInitGpfGlobals(); 21 if (argc>1 && argv[1]!=NULL && strcmp(argv[1],"-d")==0) { 22 int n; 23 for (n=0; n < argc; n++) { 24 printf("%2d: '%s'\n", n, argv[n]); 25 } 26 } else { 27 while (--argc) { 28 printf("%s%c", *++argv, argc==1 ? '\n' : ' '); 29 } 30 } 31 } 32