aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2023-12-24 00:11:08 +0100
committerMarkus Uhlin <markus@nifty-networks.net>2023-12-24 00:11:08 +0100
commit6eee2e702c6fff02c44bed3c61b219606d6567b2 (patch)
treef4570a21b779a5a294e82aa959d86f0f1af1d8fd
parentcf47d8972fcb685c3542dc768c3ee70fe5bcba04 (diff)
Reformatted holding_str()
-rw-r--r--FICS/board.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/FICS/board.c b/FICS/board.c
index 2a123cb..0e5890e 100644
--- a/FICS/board.c
+++ b/FICS/board.c
@@ -131,21 +131,21 @@ PUBLIC void board_calc_strength(game_state_t *b, int *ws, int *bs)
}
}
-PRIVATE char *holding_str(int *holding)
+PRIVATE char *
+holding_str(int *holding)
{
- static char tmp[30];
- int p,i,j;
-
- i = 0;
- for (p = PAWN; p <= QUEEN; p++)
- {
- for (j = 0; j < holding[p-1]; j++)
- {
- tmp[i++] = wpstring[p][0];
- }
- }
- tmp[i] = '\0';
- return tmp;
+ int p, i, j;
+ static char tmp[30];
+
+ i = 0;
+
+ for (p = PAWN; p <= QUEEN; p++) {
+ for (j = 0; j < holding[p - 1]; j++)
+ tmp[i++] = wpstring[p][0];
+ }
+
+ tmp[i] = '\0';
+ return tmp;
}
PRIVATE char *