diff options
| author | Markus Uhlin <markus@nifty-networks.net> | 2026-04-25 22:03:39 +0200 |
|---|---|---|
| committer | Markus Uhlin <markus@nifty-networks.net> | 2026-04-25 22:03:39 +0200 |
| commit | 1cbade513432ce10df02d8874506353e863012a2 (patch) | |
| tree | eb6456caacd0136891a48adcdebbe737f4c92bcd /FICS | |
| parent | 345a98d8d9849bbea6b0863c463af7a7d6e5abaf (diff) | |
Usage of mfprintf()
Diffstat (limited to 'FICS')
| -rw-r--r-- | FICS/board.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/FICS/board.c b/FICS/board.c index 8c480a5..9605db4 100644 --- a/FICS/board.c +++ b/FICS/board.c @@ -1341,7 +1341,7 @@ wild_update(int style) return; } - fprintf(fp, "W:"); + mfprintf(fp, "W:"); onPiece = -1; for (r = 1; r >= 0; r--) { @@ -1349,15 +1349,15 @@ wild_update(int style) if (onPiece < 0 || b[f][r] != onPiece) { onPiece = b[f][r]; - fprintf(fp, " %s", wpstring - [piecetype(b[f][r])]); + mfprintf(fp, " %s", + wpstring[piecetype(b[f][r])]); } - fprintf(fp, " %c%c", (f + 'a'), (r + '1')); + mfprintf(fp, " %c%c", (f + 'a'), (r + '1')); } } - fprintf(fp, "\nB:"); + mfprintf(fp, "\nB:"); onPiece = -1; for (r = 6; r < 8; r++) { @@ -1365,15 +1365,15 @@ wild_update(int style) if (onPiece < 0 || b[f][r] != onPiece) { onPiece = b[f][r]; - fprintf(fp, " %s", wpstring - [piecetype(b[f][r])]); + mfprintf(fp, " %s", + wpstring[piecetype(b[f][r])]); } - fprintf(fp, " %c%c", (f + 'a'), (r + '1')); + mfprintf(fp, " %c%c", (f + 'a'), (r + '1')); } } - fprintf(fp, "\n"); + mfprintf(fp, "\n"); fclose(fp); } } |
