Keyboard input/Flush the keyboard buffer: Difference between revisions
Content added Content deleted
Line 827:
fseek(stdin, 0, SEEK_END);
//
//
// setvbuf(stdin, NULL, _IONBF, 0);
// Now we are able to check if the buffer is really empty.
//
fgets(text, sizeof(text), stdin);
|