comparison arogue5/rip.c @ 196:80a590e67206

Advanced Rogue 5: add and use md_fdopen(). Portability is improved.
author John "Elwin" Edwards
date Tue, 11 Aug 2015 15:15:09 -0400
parents 7faf4568c295
children 56e748983fa8
comparison
equal deleted inserted replaced
195:beab22b087a1 196:80a590e67206
207 if ((fd = scorefd) < 0) 207 if ((fd = scorefd) < 0)
208 { 208 {
209 printf("\nCannot open score_file.\n"); 209 printf("\nCannot open score_file.\n");
210 return; 210 return;
211 } 211 }
212 outf = (FILE *) fdopen(fd, "w"); 212 outf = (FILE *) md_fdopen(fd, "w");
213 213
214 /* Get this system's name */ 214 /* Get this system's name */
215 thissys = md_gethostname(); 215 thissys = md_gethostname();
216 216
217 for (scp = top_ten; scp <= &top_ten[NUMSCORE-1]; scp++) 217 for (scp = top_ten; scp <= &top_ten[NUMSCORE-1]; scp++)