Originally posted by Magos
According to Borland's help files, the portability of strtol() doesn't include Unix, which atoi() does.
I don't know anything about the error handling, but the function runs faster without it and if the user is dumb enough trying to convert "abc" to an integer, it's his fault .
borlands help files are wrong. strtol is ansi C just as much as atoi. and your second statement is a mark of bad coding practice.