Alime.221 net.sources utzoo!decvax!harpo!floyd!vax135!lime!martin Thu Apr 15 18:33:39 1982 scatter away those rainy days #include /* * SCATTER. This program takes the first 23 lines from the standard * input and displays them on the VDU screen, in a random manner. * The program is set up to work on HP262X terminals. Each run of the * program is different. * i do not use /etc/termcap et all, because this was a small program * written on a rainy day. * The program has no worth while use except for "who|scatter" and * "ls - l | scatter" when you are boared. * * martin levy. HO-2787. houxg!lime!martin. */ char s[23][80]; /* Screen Array */ main() { register int i=0,j=0; register char c; int char_count=0; long t; char buf[BUFSIZ]; setbuf(stdout,buf); init(); while( (c=getchar()) != EOF && i
This Usenet Oldnews Archive article may be copied and distributed freely, provided:

1. There is no money collected for the text(s) of the articles.
2. The following notice remains appended to each copy:

The Usenet Oldnews Archive: Compilation Copyright© 1981, 1996
Bruce Jones, Henry Spencer, David Wiseman.


Goto NEXT article in NET.sources Newsgroup
Return to NET.sources index
Return to the Usenet Oldnews Archive index ----------------------------------------------------------------- gopher://quux.org/ conversion by John Goerzen of http://communication.ucsd.edu/A-News/ This Usenet Oldnews Archive article may be copied and distributed freely, provided: 1. There is no money collected for the text(s) of the articles. 2. The following notice remains appended to each copy: The Usenet Oldnews Archive: Compilation Copyright (C) 1981, 1996 Bruce Jones, Henry Spencer, David Wiseman.