home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
vol_100
/
118_01
/
echo.bds
< prev
next >
Wrap
Text File
|
1980-07-09
|
512b
|
27 lines
/* echo command line arguments
* source: echo.bds
* version: July 17, 1981
*/
/* echo - echo command line arguments */
# include symbol definitions
DRIVER(echo)
integer i
integer getarg
character buf (MAXARG)
call query ("usage: echo [args].")
for (i = 1; getarg (i, buf, MAXARG) != EOF; i = i + 1) {
if (i != 1)
call putch (BLANK, STDOUT)
call putlin (buf, STDOUT)
}
if (i != 1)
call putch (NEWLINE, STDOUT)
}