From 6eee2e702c6fff02c44bed3c61b219606d6567b2 Mon Sep 17 00:00:00 2001 From: Markus Uhlin Date: Sun, 24 Dec 2023 00:11:08 +0100 Subject: Reformatted holding_str() --- FICS/board.c | 28 ++++++++++++++-------------- 1 file 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 * -- cgit v1.2.3