🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #2221

Re: scanf parsing

#2221
From: diamond
Date: Mon, 24 Dec 1990 05:55
21 lines
1080 bytes
Subject: Re: scanf parsing
In article <1990Dec24.031228.5880@athena.mit.edu> tada@athena.mit.edu (Michael J Zehr) writes:
 
>what (if anything) does the ANSI spec say about scanf using %f format
>and strtod for the following strings?
 
>"1ea"
I believe that an interpretation ruling on this issue was posted a few
months ago, stating that the "a" would be pushed back, the "1" and "e"
are lost, and the result is matching failure.
 
>"1e "
.-1s/"a"/" "
 
>"1e1e"
This one does not seem to need interpretation.  1e1 is matched successfully
and the last "e" is pushed back.
 
--
Norman Diamond       diamond@tkov50.enet.dec.com
If this were the company's opinion, I wouldn't be allowed to post it.
Technical Details
Message-ID: <9012240555.AA13388@decpa.pa.dec.com>
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!ucbvax!tkou02.enet.dec.com!diamond

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!ucbvax!tkou02.enet.dec.com!diamond
From: diamond@tkou02.enet.dec.com ("diamond@tkovoa")
Newsgroups: comp.std.c
Subject: Re: scanf parsing
Message-ID: <9012240555.AA13388@decpa.pa.dec.com>
Date: 24 Dec 90 05:55:20 GMT
Sender: daemon@ucbvax.BERKELEY.EDU
Lines: 21