Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include "wait.h"
- int wait (void) {
- int c;
- extern int quittersFlag;
- printf("\n(Waiting politely for you to press the RETURN key...)\n\n");
- while ((c = getchar()) != '\n') {
- if (c == EOF) {
- return quittersFlag = 1;
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement