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..