aboutsummaryrefslogtreecommitdiffstats
path: root/FICS/gamedb.c
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2026-03-22 22:46:59 +0100
committerMarkus Uhlin <markus@nifty-networks.net>2026-03-22 22:46:59 +0100
commite6d52036420805fed32ae451f0c8c7f308b54a78 (patch)
treea718eb45b79d159a45f6b18d7cc6ebe4d38f6d3c /FICS/gamedb.c
parentccc018887c443bf06482632d41798ec914a1df53 (diff)
WriteGameFile: usage of mfprintf()
Diffstat (limited to 'FICS/gamedb.c')
-rw-r--r--FICS/gamedb.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/FICS/gamedb.c b/FICS/gamedb.c
index d260e3f..27bfddc 100644
--- a/FICS/gamedb.c
+++ b/FICS/gamedb.c
@@ -1568,25 +1568,25 @@ WriteGameFile(FILE *fp, int g)
player *bp = &parray[gg->black];
player *wp = &parray[gg->white];
- fprintf(fp, "v %d\n", GAMEFILE_VERSION);
- fprintf(fp, "%s %s\n", wp->name, bp->name);
- fprintf(fp, "%d %d\n", gg->white_rating, gg->black_rating);
- fprintf(fp, "%d %d %d %d\n", gg->wInitTime, gg->wIncrement,
+ mfprintf(fp, "v %d\n", GAMEFILE_VERSION);
+ mfprintf(fp, "%s %s\n", wp->name, bp->name);
+ mfprintf(fp, "%d %d\n", gg->white_rating, gg->black_rating);
+ mfprintf(fp, "%d %d %d %d\n", gg->wInitTime, gg->wIncrement,
gg->bInitTime, gg->bIncrement);
lval = gg->timeOfStart;
- fprintf(fp, "%" PRId64 "\n", lval);
+ mfprintf(fp, "%" PRId64 "\n", lval);
#ifdef TIMESEAL
- fprintf(fp, "%d %d\n",
+ mfprintf(fp, "%d %d\n",
(con[wp->socket].timeseal ? (gg->wRealTime / 100) : gg->wTime),
(con[bp->socket].timeseal ? (gg->bRealTime / 100) : gg->bTime));
#endif
- fprintf(fp, "%d %d\n", gg->result, gg->winner);
- fprintf(fp, "%d %d %d %d\n", gg->private, gg->type, gg->rated,
+ mfprintf(fp, "%d %d\n", gg->result, gg->winner);
+ mfprintf(fp, "%d %d %d %d\n", gg->private, gg->type, gg->rated,
gg->clockStopped);
- fprintf(fp, "%d\n", gg->numHalfMoves);
+ mfprintf(fp, "%d\n", gg->numHalfMoves);
for (int i = 0; i < garray[g].numHalfMoves; i++)
WriteMoves(fp, &garray[g].moveList[i]);