i'm doing a printf, than i want to stop and ask the user to press enter to continue (that would return him/her to a main menu.... now i got it to stop and wait for input, but when pressing enter it only gives me a new line... here's the code:
what am i doing wrong here?Code:void pause(void){ printf("Press ENTER to continue.... \n"); while(getc() != EOF) /* nothing happens */; }