tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Bug in scanf?



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.


Home | Main Index | Thread Index | Old Index