Hi!
I have:
char str[100];
int temp;
I use fgets to read in like [2 3 +].
When i = 0, str[i] points at the character 2.
How can I get temp to be 2??
temp = str[i] don't work because str[] is declared as a char.
temp gets another value than 2!
HOw do I convert what str[i] is pointing at into an integer?
Would appreciate an answer