Answers for "clear buffer c and not do anything with it"

C++
0

c clear buffer

void clearBuffer() {
	char c;
	do {
		c = getchar();
	} while (c != '\n' && c != EOF);
}
Posted by: Guest on April-04-2021

Code answers related to "clear buffer c and not do anything with it"

Browse Popular Code Answers by Language