I have the below that works but I'm not sure why it works. I understand the second loop. What I don't get is the first loop. Why would tab and space ( what the number represents in char ) be required for i? Would a while loop also work? I don't understand how the first loop is actually looping properly.
Code:uint32_t j; char i; char * charArray; for ( i = getchar(); i == 9 || i == 10 || i == 32; i = getchar() ) ; for ( j = 0; j < size - 1 && i != 10; ++j ) { charArray[j] = i; i = getchar(); }