reading formatted strings: readf("%s", &stringvar)
Andrei Alexandrescu
SeeWebsiteForEmail at erdani.org
Mon Mar 26 17:05:51 PDT 2012
On 3/26/12 2:52 PM, Tyro[17] wrote:
> Couldn't the state of stdin be checked upon entrance into readf
> and reopened if it is already closed?
That won't work.
> Wouldn't that accomplish the desired effect while avoiding
> the pitfalls of scanf?
I don't think this is a pitfall. Essentially you don't have a definition
of what constitutes a chunk of input. Once you get that define, you
should be able to express it more or less easily.
Andrei
More information about the Digitalmars-d
mailing list