mirror of
https://github.com/n05la3/cmdtypist
synced 2024-11-07 15:20:28 +00:00
flushed trailing characters
This commit is contained in:
parent
d401e09237
commit
1f5b3df7d7
@ -18,6 +18,7 @@ void select_lesson(int argc_cmd)
|
||||
else if((lesson_choice<1||lesson_choice>20)&&strcmp(firstarg,"select")==0)
|
||||
fprintf(stderr, "%s %d\n", "No lesson entry for ",lesson_choice);
|
||||
else printf("%s\n", "Command not found");
|
||||
while(ch=getchar()!='\n');//disposing off wrong input string.
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user