Searched refs:Monstfp (Results 1 - 7 of 7) sorted by relevance

/netbsd-6-1-5-RELEASE/games/phantasia/
H A Dsetup.c51 / GLOBAL INPUTS: Curmonster, _iob[], Databuf[], *Monstfp, Enrgyvoid
53 / GLOBAL OUTPUTS: Curmonster, Databuf[], *Monstfp, Enrgyvoid
136 if ((Monstfp = fopen(path, "w")) == NULL)
142 fclose(Monstfp);
164 fwrite((char *) &Curmonster, SZ_MONSTERSTRUCT, 1, Monstfp);
167 fflush(Monstfp);
168 if (ferror(Monstfp))
170 fclose(Monstfp);
H A Dphantglobs.c112 FILE *Monstfp; /* pointer to open monster file */ variable
H A Dphantglobs.h47 extern FILE *Monstfp; /* pointer to open monster file */
H A Dmisc.c652 fseek(Monstfp, 13L * SZ_MONSTERSTRUCT, SEEK_SET);
653 fread((char *) &Curmonster, SZ_MONSTERSTRUCT, 1, Monstfp);
655 fseek(Monstfp, 13L * SZ_MONSTERSTRUCT, SEEK_SET);
656 fwrite((char *) &Curmonster, SZ_MONSTERSTRUCT, 1, Monstfp);
657 fflush(Monstfp);
H A Dgamesupport.c456 fseek(Monstfp, 0L, SEEK_SET);
457 while (fread((char *) &Curmonster, SZ_MONSTERSTRUCT, 1, Monstfp) == 1)
H A Dfight.c862 fseek(Monstfp, (long) which * (long) SZ_MONSTERSTRUCT, SEEK_SET);
863 fread((char *) &Curmonster, SZ_MONSTERSTRUCT, 1, Monstfp);
897 fseek(Monstfp, (long) which * (long) SZ_MONSTERSTRUCT, SEEK_SET);
898 fread(&Othermonster, SZ_MONSTERSTRUCT, 1, Monstfp);
H A Dmain.c323 if ((Monstfp = fopen(_PATH_MONST, "r+")) == NULL)
1049 if (Monstfp)
1050 fclose(Monstfp);

Completed in 116 milliseconds