flushed trailing characters

This commit is contained in:
Calson Noah 2017-05-31 09:22:49 +01:00
parent d401e09237
commit 1f5b3df7d7

View File

@ -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.
}
}