X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f996b,a5d2ec7a783feb1c X-Google-Attributes: gidf996b,public X-Google-ArrivalTime: 1994-03-22 10:52:05 PST Newsgroups: alt.ascii-art Path: gmd.de!newsserver.jvnc.net!netnews.upenn.edu!msuinfo!agate!howland.reston.ans.net!pipex!warwick!news.dcs.warwick.ac.uk!crisp From: crisp@dcs.warwick.ac.uk (Badvoc) Subject: Re: DIS .vt files Message-ID: <1994Mar22.185205.15349@dcs.warwick.ac.uk> Sender: news@dcs.warwick.ac.uk (Network News) Nntp-Posting-Host: stone Organization: Department of Computer Science, Warwick University, England References: <1994Mar18.233305.7244@sarah.albany.edu> <2miaof$eki@lyra.csx.cam.ac.uk> <2mjem2INNabi@srvr1.engin.umich.edu> <2mkrap$64a@dante.exide.com> Date: Tue, 22 Mar 1994 18:52:05 GMT Lines: 40 In <2mkrap$64a@dante.exide.com> murray@sunw30.exide.com (Alan Murray) writes: [Some stuff deleted.] > >And now that I'm here: someone a while back posted a C program that >does the same thing as cat (sorry, can't find the original post to give >credit). Anyway, for those of you who want to slow down the animation, >you can use the following modified version. Just set DELAY to a suitable >number to slow down the animation. 1000 works best on this computer, but >change it to suit your taste. > [Program deleted.] You are doing it all wrong. Here is the program I use. #include int main(argc, argv) char **argv; { char *ptr; int i, l = argc > 1 ? atoi(argv[1]) : 1; if(ptr = malloc(l)) { while((i = read(0, ptr, l)) && i != -1) write(1, ptr, l); } return 0; } It takes one argument. "1" being the slowest and the bigger the faster. -- Badvoc. Chris Purnell | main[]={0x40000002,0x90102001,0x9203e020, Campaign Against Real Names | 0x9410200e,0x82102004,0x91d00000, crisp@dcs.warwick.ac.uk | 0x82102001,0x91d00000,0x48656c6c, csukf@csv.warwick.ac.uk | 0x6f2c2057,0x6f726c64,0x210a0000};