Actually, casting to int makes no sense what so ever. atoi and friends are prototyped to take a const char * as an argument, not an int. the main draw back with these functions is they allow for no error checking. The strtol strtod and (int)strtol functions are actually a better choice. If an overflow occurs it sets an error value and returns a value to let you know whether the value was positive or negative. The unconverted portion of the string can be retrieved from the second argument. It is prototyped in stdlib.h as well.<br>
Regards,<br>
Greg Martin.<br>