- #1
Firestrider
- 104
- 0
Can someone explain to me what exactly these two constructs mean:
I'm supposed to read in all the characters of a long integer (up to 200 digits) and return a pointer. How can I access the size and digits in the struct integer? How can I determine whether I've reached white space? How can I convert a character into an integer?
Thank you for your help.
Code:
struct integer
{
int* digits;
int size;
};
struct integer* read_integer(char* stringInt);
I'm supposed to read in all the characters of a long integer (up to 200 digits) and return a pointer. How can I access the size and digits in the struct integer? How can I determine whether I've reached white space? How can I convert a character into an integer?
Thank you for your help.