while working on an application that requires converting strings to long numbers the atol() and strtol() could not convert any string larger than 9 digits correctly.
strtol would prompt a number that has nothing to do with the string, while atol results in a negative number (overflow).
any idea why this is happening and how can i fix it?