projects
/
super-star-trek.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Header file cleanup.
[super-star-trek.git]
/
finish.c
diff --git
a/finish.c
b/finish.c
index 33694697902e2516af30ab8f519741f7cd202da7..e3ace26732e2fef5cb47715c2ab18ef5d1723374 100644
(file)
--- a/
finish.c
+++ b/
finish.c
@@
-1,6
+1,3
@@
-#ifdef SERGEEV
-#include <conio.h>
-#endif /* SERGEEV */
#include "sst.h"
#include <string.h>
#include <time.h>
#include "sst.h"
#include <string.h>
#include <time.h>
@@
-19,21
+16,13
@@
void dstrct() {
prouts(" 8"); skip(1);
prouts(" 7"); skip(1);
prouts(" 6"); skip(1);
prouts(" 8"); skip(1);
prouts(" 7"); skip(1);
prouts(" 6"); skip(1);
-#ifdef SERGEEV
skip(1);
skip(1);
-#endif /* SERGEEV */
prout("ENTER-CORRECT-PASSWORD-TO-CONTINUE-");
prout("ENTER-CORRECT-PASSWORD-TO-CONTINUE-");
-#ifdef SERGEEV
skip(1);
skip(1);
-#endif /* SERGEEV */
prout("SELF-DESTRUCT-SEQUENCE-OTHERWISE-");
prout("SELF-DESTRUCT-SEQUENCE-OTHERWISE-");
-#ifdef SERGEEV
skip(1);
skip(1);
-#endif /* SERGEEV */
prout("SELF-DESTRUCT-SEQUENCE-WILL-BE-ABORTED");
prout("SELF-DESTRUCT-SEQUENCE-WILL-BE-ABORTED");
-#ifdef SERGEEV
skip(1);
skip(1);
-#endif /* SERGEEV */
scan();
chew();
if (strcmp(game.passwd, citem) != 0) {
scan();
chew();
if (strcmp(game.passwd, citem) != 0) {
@@
-404,12
+393,7
@@
void plaque(void) {
while (fp == NULL) {
proutn("File or device name for your plaque: ");
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.");
fp = fopen(winner, "w");
if (fp==NULL) {
prout("Invalid name.");
@@
-417,7
+401,7
@@
void plaque(void) {
}
proutn("Enter name to go on plaque (up to 30 characters): ");
}
proutn("Enter name to go on plaque (up to 30 characters): ");
- getline(winner, sizeof(winner));
+
c
getline(winner, sizeof(winner));
/* The 38 below must be 64 for 132-column paper */
nskip = 38 - strlen(winner)/2;
/* The 38 below must be 64 for 132-column paper */
nskip = 38 - strlen(winner)/2;