This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC3220SF-LAUNCHXL: atoll() question

Part Number: CC3220SF-LAUNCHXL

I want to covert a string to a unsigned 64bit using atoll(), but the coverted value is incorrect. 
For below examples, only string 3 is correct. The coverted value of  string 1 and string has filled FF instead of 00. 

uint64_t string1value,string2value,string3value;

char string1[]= "188900977659375"; //0x0000ABCDEFABCDEF
char string2[]= "2882400171"; //0x00000000ABCDEFAB
char string3[]= "11259375"; //0x0000000000ABCDEF

string1value = (uint64_t) atoll(string1);
string2value = (uint64_t) atoll(string2);
string3value = (uint64_t) atoll(string3);