I\'m trying to convert 64bit integer string to integer, but I don\'t know which one to use.
Something like...
#ifdef WINDOWS
#define atoll(S) _atoi64(S)
#endif
..then just use atoll()
. You may want to change the #ifdef WINDOWS
to something else, just use something that you can rely on to indicate that atoll()
is missing but atoi64()
is there (at least for the scenarios you're concerned about).