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

Chris Torek chris at mimsy.umd.edu
Thu Jan 4 18:34:03 AEST 1990


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 at cs.umd.edu	Path:	uunet!mimsy!chris



More information about the Comp.std.c mailing list