DataMuseum.dk

Presents historical artifacts from the history of:

DKUUG/EUUG Conference tapes

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about DKUUG/EUUG Conference tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - metrics - download
Index: T d

⟦22bd652df⟧ TextFile

    Length: 554 (0x22a)
    Types: TextFile
    Names: »doquit.c«

Derivation

└─⟦b20c6495f⟧ Bits:30007238 EUUGD18: Wien-båndet, efterår 1987
    └─⟦this⟧ »EUUGD18/General/Hangman1/doquit.c« 

TextFile

/*  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);
   }
}