From e28e5ca16689681ee68fac402d64e11505d55de0 Mon Sep 17 00:00:00 2001 From: 0niiC Date: Mon, 17 Nov 2025 10:55:55 +0700 Subject: [PATCH] Change input condition from '1' to '0' for buffer --- infolabs/procmemorylearning/code.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/infolabs/procmemorylearning/code.c b/infolabs/procmemorylearning/code.c index 5612071..f058a04 100644 --- a/infolabs/procmemorylearning/code.c +++ b/infolabs/procmemorylearning/code.c @@ -16,7 +16,7 @@ int main() { cpumodel(cpum); printf("Buff: "); - if (getchar() == '1') { + if (getchar() == '0') { setbuf(stdin, NULL); printf("buff is off\n"); } else {