Article View: comp.std.c
Article #5725scanf question
From: John Salmon
Date: Sat, 18 Feb 1989 06:29
Date: Sat, 18 Feb 1989 06:29
13 lines
814 bytes
814 bytes
I have an old (March 87) draft of the standard which says
in Sec. 4.9.6.2 The fscanf function, paragraph 8:
"...A white-space directive fails if no white-space can be found."
K&R 2nd edition says that "white-space directives are ignored"
Which is correct? Is count set to 0 or 1 by:
count = sscanf("10", " %d", &i);
Thanks,
John Salmon
johns@wega.caltech.edu
Technical Details
Message-ID:
<9641@cit-vax.Caltech.Edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ukma!xanth!ames!elroy!cit-vax!macondo!johnsShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ukma!xanth!ames!elroy!cit-vax!macondo!johns From: johns@macondo.Caltech.Edu (John Salmon) Newsgroups: comp.std.c Subject: scanf question Message-ID: <9641@cit-vax.Caltech.Edu> Date: 18 Feb 89 06:29:59 GMT Sender: news@cit-vax.Caltech.Edu Reply-To: johns@wega.caltech.edu.UUCP (John Salmon) Organization: California Institute of Technology Lines: 13