Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!philabs!cmcl2!seismo!harvard!talcott!panda!genrad!decvax!cca!ima!ISM780B!jim From: jim@ISM780B.UUCP Newsgroups: net.unix-wizards Subject: Re: Plexus P/40 System III Release 1.2 ' Message-ID: <157@ISM780B.UUCP> Date: Sat, 16-Mar-85 01:33:47 EST Article-I.D.: ISM780B.157 Posted: Sat Mar 16 01:33:47 1985 Date-Received: Sun, 17-Mar-85 23:33:57 EST Lines: 22 Nf-ID: #R:aicchi:-39500:ISM780B:28500034:000:551 Nf-From: ISM780B!jim Mar 14 21:17:00 1985 >#include > >main() >{ > char buff[64]; > > setbuf(stdout,buff); > > fprintf(stdout,"This is a message\n"); > fprintf(stderr,"And this is an error\n"); >} > >He dutifully compiled it with 'cc -o dork dork.c', and executed >the resultant file. Much to my surprise, this resulted in: > >And this is an error >This~^R^G^Z^A~x^Rage Quite expectable if you don't follow the documentation, which states that the argument to setbuf is a char buf[BUFSIZ]. 64 is < BUFSIZ. -- Jim Balter, INTERACTIVE Systems (ima!jim)