🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #6141

ANSI draft interpretation question: scanf("%*n", ...

#6141
From: Chris Torek
Date: Thu, 04 Jan 1990 07:34
13 lines
969 bytes
According to the December 1988 draft, `*' as a scanf flag (between
a `%' and a conversion character) is an assignment suppression flag.
However, `%n' does not count as an assignment, nor is it a regular
conversion character (since no input is converted).  This leaves
me with the question:

  Does `%*n' write to anything, or is the `assignment' suppressed?

Note that `%*n' is completely useless if it is suppressed, since it
affects neither the stream nor any object.
-- 
In-Real-Life: Chris Torek, Univ of MD Comp Sci Dept (+1 301 454 7163)
Domain:	chris@cs.umd.edu	Path:	uunet!mimsy!chris
Technical Details
Message-ID: <21623@mimsy.umd.edu>
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!ames!haven!mimsy!chris

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!ames!haven!mimsy!chris
From: chris@mimsy.umd.edu (Chris Torek)
Newsgroups: comp.std.c
Subject: ANSI draft interpretation question: scanf("%*n", ...
Message-ID: <21623@mimsy.umd.edu>
Date: 4 Jan 90 07:34:03 GMT
Organization: U of Maryland, Dept. of Computer Science, Coll. Pk., MD 20742
Lines: 13