Say I have a string (str) that contains a very long signed integer, like +1234567890 or -1234567890. How can I convert this string to an integer value that will preserve all 10 values (including the sign would be nice too)? I've tried functions like atol but it doesn't work. A small code example should suffice.
Thanks.