How can I get correct result:
char * str;
str = "1097400000 0";
i = atoi(str);
printf("i=" , i);
----- output:
i=2617245696
---
If str is smaller(1097400 0) then result is correct
char * str;
str = "1097400000 0";
i = atoi(str);
printf("i=" , i);
----- output:
i=2617245696
---
If str is smaller(1097400 0) then result is correct
Comment