|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T d
Length: 554 (0x22a) Types: TextFile Names: »doquit.c«
└─⟦b20c6495f⟧ Bits:30007238 EUUGD18: Wien-båndet, efterår 1987 └─⟦this⟧ »EUUGD18/General/Hangman1/doquit.c«
/* doquit.c * process 'Q' command...ie quit * written by: ritcv!jxs7451 */ #include "hangman.h" #include<stdio.h> doquit() { int ch; clbtm(); setcur(ERROR,1); printf("Really quit(y/n)? "); ch = getchar(); putchar(ch); /* eof */ if ((ch != 'Y') && (ch != 'y')) { setcur(ERROR,1); erasel(0,0); puts("Not quitting.\n"); return(0); } else /* really quit */ { setcur(ERROR,1); erasel(0,0); printf("Quitting hangman %s.\n",VERSION); reset_term(); exit(0); } }