[Issue 11432] formattedRead and slurp %s format code miss tab as whitespace
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Dec 7 09:52:52 UTC 2019
https://issues.dlang.org/show_bug.cgi?id=11432
berni44 <bugzilla at d-ecke.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |bugzilla at d-ecke.de
Resolution|--- |INVALID
--- Comment #1 from berni44 <bugzilla at d-ecke.de> ---
IMHO the problem is, that formattedRead is not identical to scanf - but it's
not well documented. You should use
formattedRead(s, "%s\t%d\t%d", &t, &a, &b);
The same is true for the slurp example, where you found out allready, that you
need \t.
--
More information about the Digitalmars-d-bugs
mailing list