Change input condition from '1' to '0' for buffer
This commit is contained in:
@@ -16,7 +16,7 @@ int main() {
|
|||||||
cpumodel(cpum);
|
cpumodel(cpum);
|
||||||
|
|
||||||
printf("Buff: ");
|
printf("Buff: ");
|
||||||
if (getchar() == '1') {
|
if (getchar() == '0') {
|
||||||
setbuf(stdin, NULL);
|
setbuf(stdin, NULL);
|
||||||
printf("buff is off\n");
|
printf("buff is off\n");
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user