View Single Post
Contributor
15Jan2008,15:30  
technosavvy's Avatar
completely agree..
there is another kind of case ..when input is "1234forum"
atoi() will return 1234..!!

and in case of strtol() using the third argument we can check if the function traversed the whole input or not..