Lines Matching defs:outf
245 FILE *outf;
266 outf = fopen(buf, "w");
267 if (outf == NULL) {
275 fprintf(outf, "NetBSD monop format v%d\n", CUR_FORMAT_VERSION);
276 fprintf(outf, "time %s", ctime(&t)); /* ctime includes a \n */
277 fprintf(outf, "numplayers %d\n", num_play);
278 fprintf(outf, "currentplayer %d\n", player);
279 fprintf(outf, "doubles %d\n", num_doub);
283 fprintf(outf, "player %d {\n", i);
284 fprintf(outf, " name %s\n", name_list[i]);
285 fprintf(outf, " money %d\n", play[i].money);
286 fprintf(outf, " loc %d\n", play[i].loc);
287 fprintf(outf, " num_gojf %d\n", play[i].num_gojf);
288 fprintf(outf, " in_jail %d\n", play[i].in_jail);
289 fprintf(outf, "}\n");
294 fprintf(outf, "deck %d {\n", i);
295 fprintf(outf, " numcards %d\n", deck[i].num_cards);
296 fprintf(outf, " topcard %d\n", deck[i].top_card);
297 fprintf(outf, " gojf_used %d\n", deck[i].gojf_used);
298 fprintf(outf, " cards");
300 fprintf(outf, " %d", deck[i].cards[j]);
301 fprintf(outf, "\n");
302 fprintf(outf, "}\n");
307 fprintf(outf, "square %d {\n", i);
308 fprintf(outf, "owner %d\n", board[i].owner);
312 fprintf(outf, "morg %d\n", board[i].desc->morg);
313 fprintf(outf, "houses %d\n", board[i].desc->houses);
315 fprintf(outf, "morg %d\n", board[i].desc->morg);
317 fprintf(outf, "}\n");
319 if (ferror(outf) || fflush(outf))
321 fclose(outf);