Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
6
Task/Copy-stdin-to-stdout/REXX/copy-stdin-to-stdout.rexx
Normal file
6
Task/Copy-stdin-to-stdout/REXX/copy-stdin-to-stdout.rexx
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
/*REXX pgm copies data from STDIN──►STDOUT (default input stream──►default output stream*/
|
||||
|
||||
do while chars()\==0 /*repeat loop until no more characters.*/
|
||||
call charin , x /*read a char from the input stream. */
|
||||
call charout , x /*write " " " " output " */
|
||||
end /*while*/ /*stick a fork in it, we're all done. */
|
||||
Loading…
Add table
Add a link
Reference in a new issue