Does scanf put spaces in its buffer or input stream? If i say
scanf("%c %d %d", &character, &num1, &num2);
And now say
scanf("%c", &char2);
I know that enter will stay in the buffer but do the spaces count?
scanf("%c%d%d", &character, &num1, &num2);
Is this any different than the first part.
Also another thing. Can I somehow break scanf after user presses enter. If it presses enter after the num1 for ex. Input: i 5
Can i somehow make scanf stop after this even though it is waiting for one more input?
sscanf. - hyde