Warp wrote:
> Warp <war### [at] tagpovrayorg> wrote:
>> Another C function can be used to both parse an integer from a string
>> and know if there was one: strtod(). However, its usage is even more
>> complicated than atoi().
>
> Yeah, it's strtol(), not strtod(). The latter is to read a floating
> point number.
>
> (This shows how clear those C function names are... ;) )
<insert "I told you so" remarks here> ;-)
At least C++ manages to be a little more intuitive here.
--
http://blog.orphi.me.uk/
http://www.zazzle.com/MathematicalOrchid*
Post a reply to this message
|