I've been using atoi() to read a field in a text file and store the binary number in an unsigned int field of a struct. From what I can tell, the results are not what I want if the number is within the range of an unsigned int but would be negative as a signed int. Perhaps I need to convert the text number into a long long and then cast it into the struct. Is there a function like atoi() whose output is a long long integer?