🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #6170

Re: ANSI draft interpretation questions

#6170
From: Steve Thomas
Date: Tue, 09 Jan 1990 17:00
21 lines
1333 bytes
In article <21675@mimsy.umd.edu> chris@mimsy.umd.edu (Chris Torek) writes:
>Anyway, here are the (apparent) answers:
	[ list of answers ]

I've been following this discussion with some interest, since I'm
trying to implement scanf() myself.  This list of answers is in line
with my latest reading of the standard, though I confess that I went
astray a few times.  There is an example which is presumably supposed
to clarify matters (although it's not, of course, officially part of
the standard).  In the Dec. 88 draft, page 139 line 24 says

	count = 0; /* "100e" fails to match "%f" */

when trying to match "%f%20s of %20s" with the input `100ergs of
energy'.

The example is clearly wrong, since page 151 line 36ff speaks of the
`longest initial subsequence ... of the correct form'.  Caveat lector,
I suppose.

Steve Thomas
Technical Details
Message-ID: <1345@acorn.co.uk>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!uunet!mcsun!ukc!acorn!sthomas
References: <21623@mimsy.umd.edu> <11879@smoke.BRL.MIL> <21675@mimsy.umd.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!uunet!mcsun!ukc!acorn!sthomas
From: sthomas@acorn.co.uk (Steve Thomas)
Newsgroups: comp.std.c
Subject: Re: ANSI draft interpretation questions
Message-ID: <1345@acorn.co.uk>
Date: 9 Jan 90 17:00:56 GMT
References: <21623@mimsy.umd.edu> <11879@smoke.BRL.MIL> <21675@mimsy.umd.edu>
Reply-To: sthomas@acorn.co.uk (Steve Thomas)
Organization: Acorn Computers Ltd, Cambridge, UK
Lines: 21