SyntaxFix
Write A Post
Hire A Developer
Questions
To @R.. I think it's not enough to check errno for error detection in strtol call.
errno
strtol
long strtol (const char *String, char **EndPointer, int Base)
You'll also need to check EndPointer for errors.
EndPointer