0
fflush(stdin ) what this does!
5 Réponses
+ 2
Logically it means to write the contents of the internal buffer into the stream. Since stdin is NON WRITABLE, you cannot flush it. But if you want to empty the internal buffer, you may use
while (fgetc(stdin)^-1);
+ 1
It renders the standard input empty (to avoid buffer overflow for example)
+ 1
thank s
+ 1
your welcome :)
+ 1
yes,my mistake sorry :s