messy questions: how to convert a string into a int64 in linux

Recently I was stuck at 64bit questions in 32pc.......
lots of unknown questions came up ....

as mentioned :
messy questions: how to convert a string into a int64 in linux
i tried
ll = atoll(string)
but faild
btw:
ll is defined as :
long long ll = 0;
I print the return like this:
printf("%INT64d",ll); but failed
printing like this "printf("%INT64d",ll)" in windows succeeds, but in linux I get failure..
thnx

Try strtoimax() if int64 is the same as intmax_t on your system.

Are you looking to convert your string into an int64 or into a long long? An int64 type is not necessarily the same as a long long type. (They may be the same but it is not a requirement.)

What compiler and version are you using?