while(1) is cleaner than while(1==1)

This commit is contained in:
dvorakmortonxd 2026-05-25 22:51:10 +02:00
commit c6573d5527

2
main.c
View file

@ -173,7 +173,7 @@ int main() {
printf("\n\nSWITCH OVER TO\n"); // DIVIDER
printf("1 = DvorakMSDOS.C, 2 = exit\n");
while (getchar() != '\n') {} // same use case as above in the first input part of the code
while (1==1) {
while (1) {
fflush(stdout); // same use case as above in the first input part of the code
char chc = GETCH();
if (chc == '1') {