Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site burl.UUCP Path: utzoo!watmath!clyde!burl!geoff From: geoff@burl.UUCP (geoff) Newsgroups: net.lang.c Subject: Re: ugliness in scanf(3) Message-ID: <687@burl.UUCP> Date: Mon, 13-May-85 10:25:11 EDT Article-I.D.: burl.687 Posted: Mon May 13 10:25:11 1985 Date-Received: Tue, 14-May-85 20:11:43 EDT References: <10496@brl-tgr.ARPA> <190@mplvax.UUCP> Organization: AT&T Technologies, Burlington NC Lines: 23 > >the programmer would not be so stupid as to keep trying to > >scan a chunk of input over & over with the same failing format. > > *mild flame* > > This programmer is so stupid as to expect to find the behavior > of scanf documented in the manual. > > *unflame* > > -- > carl lowenstein marine physical lab u.c. san diego > {ihnp4|decvax|akgua|dcdwest|ucbvax} !sdcsvax!mplvax!cdl how about the bottom of page 2 of scanf documentation (V5.2)-- "Scanf conversion terminates at EOF, at the end of the control string, or when an input character conflicts with the control string. In the latter case, the offending character is left unread in the input stream." I can only surmise that you have a different version of the manual -- it does seem quite clear. geoff sherwood