Re: Bug in scanf?
Edgar Fuß <[email protected]> Wed, 10 Dec 2025 15:55:22 +0100
| Newsgroups | gmane.os.netbsd.devel.userlevel |
|---|---|
| Message-ID | <[email protected]> |
I still don't quite get this.
As far as I understand, scanning stops at the "r" and the "e" is pushed back.
I fail to see where the standard commands that the number before the "ergs"
is discarded.
What would people expect from strtol("100foo", &p, 10)?
I expect 100 to be returned and p to point to "foo", which is what happens.