Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site mplvax.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!genrad!decvax!ittvax!dcdwest!sdcsvax!sdcc3!mplvax!cdl From: cdl@mplvax.UUCP (Carl Lowenstein) Newsgroups: net.lang.c Subject: Re: ugliness in scanf(3) Message-ID: <191@mplvax.UUCP> Date: Tue, 14-May-85 23:58:35 EDT Article-I.D.: mplvax.191 Posted: Tue May 14 23:58:35 1985 Date-Received: Thu, 16-May-85 23:36:43 EDT References: <10496@brl-tgr.ARPA> <190@mplvax.UUCP> <687@burl.UUCP> Reply-To: cdl@mplvax.UUCP (Carl Lowenstein) Organization: Marine Physical Laborator of SIO at UCSD Lines: 22 In article <687@burl.UUCP> geoff@burl.UUCP (geoff) writes: > >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 You're right. It is quite clear. Unfortunately, it isn't in the 4.2BSD manual, the v7 manual, the Decus manual. Since I have all these and SVR2 too in different places, it's easy to get confused. I wish I could find the original stdio document from v6 to see whether that sentence got dropped along the way, or was recently added to prevent people like me from provoking discussions unnecessarily. -- carl lowenstein marine physical lab u.c. san diego {ihnp4|decvax|akgua|dcdwest|ucbvax} !sdcsvax!mplvax!cdl