-#ifdef SERGEEV
-#include <conio.h>
-#endif /* SERGEEV */
#include "sst.h"
#include <string.h>
#include <time.h>
prouts(" 8"); skip(1);
prouts(" 7"); skip(1);
prouts(" 6"); skip(1);
-#ifdef SERGEEV
skip(1);
-#endif /* SERGEEV */
prout("ENTER-CORRECT-PASSWORD-TO-CONTINUE-");
-#ifdef SERGEEV
skip(1);
-#endif /* SERGEEV */
prout("SELF-DESTRUCT-SEQUENCE-OTHERWISE-");
-#ifdef SERGEEV
skip(1);
-#endif /* SERGEEV */
prout("SELF-DESTRUCT-SEQUENCE-WILL-BE-ABORTED");
-#ifdef SERGEEV
skip(1);
-#endif /* SERGEEV */
scan();
chew();
if (strcmp(game.passwd, citem) != 0) {
while (fp == NULL) {
proutn("File or device name for your plaque: ");
-#ifdef SERGEEV
- getline(winner, sizeof(winner));
-#else
- fgets(winner, 128, stdin);
- winner[strlen(winner)-1] = '\0';
-#endif /* SERGEEV */
+ cgetline(winner, sizeof(winner));
fp = fopen(winner, "w");
if (fp==NULL) {
prout("Invalid name.");
}
proutn("Enter name to go on plaque (up to 30 characters): ");
- getline(winner, sizeof(winner));
+ cgetline(winner, sizeof(winner));
/* The 38 below must be 64 for 132-column paper */
nskip = 38 - strlen(winner)/2;