View Single Post
Old Nov 14th, 2006, 8:16 AM   #3
Narue
Professional Programmer
 
Narue's Avatar
 
Join Date: Sep 2005
Posts: 419
Rep Power: 4 Narue is on a distinguished road
>since an error will return the same thing as the value, zero, so you can't tell the difference
Not to mention undefined behavior if the value can't be represented by an int. atoi is only about two steps above gets on my eew-o-meter.
__________________
Even if the voices aren't real, they have some pretty good ideas.
Narue is offline   Reply With Quote