diff arogue5/rogue.c @ 279:d3968e9cb98d

Use C stdio functions for score files and save files. Switching from Unix file descriptor operations to C standard FILE* functions will reduce portability problems.
author John "Elwin" Edwards
date Fri, 15 Sep 2017 19:57:54 -0400
parents aac28331e71d
children 0250220d8cdd
line wrap: on
line diff
--- a/arogue5/rogue.c	Sun Sep 10 17:30:13 2017 -0400
+++ b/arogue5/rogue.c	Fri Sep 15 19:57:54 2017 -0400
@@ -64,7 +64,6 @@
 int spell_power = 0;
 int turns = 0;				/* Number of turns player has taken */
 int quest_item = 0;			/* Item player is looking for */
-int scorefd = -1;			/* File descriptor for the scorefile */
 char nfloors = -1;			/* Number of floors in this dungeon */
 char curpurch[LINELEN*2];		/* name of item ready to buy */
 char PLAYER = VPLAYER;			/* what the player looks like */
@@ -124,6 +123,7 @@
 char *morestr  =	"-- More --";
 char *retstr   =	"[Press return to continue]";
 
+FILE *scoreboard = NULL;		/* The scorefile */
 FILE *logfile = NULL;
 
 /*