View Single Post
  #4  
Old 06-11-2003, 11:06 AM
krich
Hill Giant
 
Join Date: May 2003
Location: The Great Northwest
Posts: 150
Default

Quote:
Originally Posted by Edgar1898
also if your compiling on linux, the versions of gcc and glibc makes a large difference.
Please elaborate, if you can...I'm a rusty c/c++ programmer, and not familiar with the intricacies of linux or the various versions of gcc libraries and compilers. I could stand to learn a thing or two on this subject.

The man page on atoi states that it stops trying to convert at the first non-numeric, non-space, non-plus (+), or non-minus (-). Judging from the laundry list of standards that use this function, I would think that it's behavior would be highly predictable under most circumstances.

/shrug

Regards,

krich
Reply With Quote