|
|
1.1 ! root 1: /* ! 2: * Enter <NL> to continue. ! 3: */ ! 4: #include <misc.h> ! 5: ! 6: void ! 7: tocont() ! 8: { ! 9: printf("Enter <NL> to continue "); ! 10: fflush(stdout); ! 11: ! 12: for (;;) { ! 13: switch (getchar()) { ! 14: case '\n': ! 15: return; ! 16: case EOF: ! 17: fatal("Unexpected EOF"); ! 18: } ! 19: } ! 20: } ! 21: ! 22: #ifdef TEST ! 23: main() ! 24: { ! 25: for (;;) { ! 26: tocont(); ! 27: } ! 28: } ! 29: #endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.