int ch = getch(); switch(ch) { case '0' ... '9': if (in_count) { count = count * 10 + (ch - '0'); } else { count = ch - '0'; in_count = 1; } continue;
int ch = getch(); switch(ch) { case '0' ... '9': if (in_count) { count = count * 10 + (ch - '0'); } else { count = ch - '0'; in_count = 1; } continue;